Skip to content
Snippets Groups Projects

scanner: added test for the model

2 unresolved threads

model test:

  • addNode: assert each node is correctly added in the tree structure
  • getJsonTree: assert the result is coherent with the data stored in the tree structure

The folder structure in the fixture temp_folder has changed to be used also by the model tests.


Migrated from D2811 (view on Phabricator)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
38 38
39 39
40 40 @pytest.fixture(scope='session')
41 def temp_paths(tmp_path_factory):
42 """Fixture to generate temporary paths"""
43 subpath = tmp_path_factory.getbasetemp()
41 def temp_folder(tmp_path_factory):
42 """Fixture that generates a temporary folder with the following
  • vlorentz
    vlorentz @vlorentz started a thread on the diff
  • 39 39
    40 40 @pytest.fixture(scope='session')
    41 def temp_paths(tmp_path_factory):
    42 """Fixture to generate temporary paths"""
    43 subpath = tmp_path_factory.getbasetemp()
    41 def temp_folder(tmp_path_factory):
    42 """Fixture that generates a temporary folder with the following
    43 structure:
    44
    45 .. code-block:: python
    46
    47 root = {
    48 subdir: {
    49 filesample.txt
    50 }
    51 subdir2
  • Merge request was returned for changes

  • Merge request was accepted

  • vlorentz approved this merge request

    approved this merge request

  • Merge request was merged

  • Please register or sign in to reply
    Loading