example_tree = <swh.scanner.model.Tree object at 0x7f1988654320>
temp_folder = {'filesample': PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_get_json_tree_only_one_pr0/subdir/filesample.txt'), 'fi...e54bf8d69288fbee4904', ...}, 'root': PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_get_json_tree_only_one_pr0'), ...}
def test_get_json_tree_only_one_present(example_tree, temp_folder):
root = temp_folder["root"]
filesample_path = temp_folder["filesample"]
for path, swhid in temp_folder["paths"].items():
> example_tree.add_node(path, swhid, True if path == filesample_path else False)
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:53: TypeError
TEST RESULT
TEST RESULT
- Run At
- Dec 19 2020, 4:43 PM