example_tree = <swh.scanner.model.Tree object at 0x7f3b270fc7b8>
temp_folder = {'filesample': PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_get_files_source_path0/subdir/filesample.txt'), 'filesa...a060e54bf8d69288fbee4904', ...}, 'root': PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_get_files_source_path0'), ...}
def test_get_files_source_path(example_tree, temp_folder):
for path, swhid in temp_folder["paths"].items():
> example_tree.add_node(path, swhid, True)
E TypeError: add_node() takes 3 positional arguments but 4 were given
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_model.py:97: TypeError
TEST RESULT
TEST RESULT
- Run At
- Jan 13 2021, 11:07 AM