scanner: added test for the model
2 unresolved threads
Closed
requested to merge generated-differential-D2811-source into generated-differential-D2811-target
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
Activity
Build is green See https://jenkins.softwareheritage.org/job/DTSCN/job/tox/15/ for more details.
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 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 Use a code block, or it will have formatting issues in our Sphinx-generated docs
Build is green See https://jenkins.softwareheritage.org/job/DTSCN/job/tox/16/ for more details.
Please register or sign in to reply