archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7fbe6beb4cc0>
@given(content(), directory(), release(), revision(), snapshot())
> def test_lookup_known_objects(
archive_data, content, directory, release, revision, snapshot
):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_service.py:817:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_service.py:833: in test_lookup_known_objects
assert service.lookup_object(SNAPSHOT, snapshot) == expected
.tox/py3/lib/python3.7/site-packages/swh/web/common/service.py:1308: in lookup_object
return lookup_snapshot(object_id)
.tox/py3/lib/python3.7/site-packages/swh/web/common/service.py:1060: in lookup_snapshot
for (branch_name, branch) in snapshot["branches"].items()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.0 = <dict_itemiterator object at 0x7fbe64e4be58>
"branches": {
branch_name: branch.to_dict() if branch else None
> for (branch_name, branch) in snapshot["branches"].items()
},
"next_branch": snapshot["next_branch"],
}
)
E AttributeError: 'dict' object has no attribute 'to_dict'
.tox/py3/lib/python3.7/site-packages/swh/web/common/service.py:1060: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Aug 7 2020, 2:30 PM