example_tree = <swh.scanner.model.Tree object at 0x7f2e2a7112b0>
temp_folder = {'filesample': PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_build_hierarchical_df0/subdir/filesample.txt'), 'filesa...a060e54bf8d69288fbee4904', ...}, 'root': PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_build_hierarchical_df0'), ...}
@pytest.fixture(scope="function")
def example_dirs(example_tree, temp_folder):
"""
Fixture that fill the fixture example_tree with the values contained in
the fixture temp_folder and returns the directories information of the
filled example_tree.
"""
root = temp_folder["root"]
filesample_path = temp_folder["filesample"]
filesample2_path = temp_folder["filesample2"]
subsubdir_path = temp_folder["subsubdir"]
known_paths = [filesample_path, filesample2_path, subsubdir_path]
for path, swhid in temp_folder["paths"].items():
if path in known_paths:
example_tree.add_node(path, swhid, True)
else:
> example_tree.add_node(path, swhid, False)
E TypeError: add_node() takes 3 positional arguments but 4 were given
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/conftest.py:124: TypeError
TEST RESULT
TEST RESULT
- Run At
- Dec 17 2020, 2:14 PM