swh_storage = <swh.storage.postgresql.storage.Storage object at 0x7f6c07cf4ba8>
snapshot_id = b'\xdb\x99\xfd\xa2[C\xdc\\\xd9\x06%\xeeK\x07Du\x17\x99\xc9\x17'
missing_id = b'\xac%\xf1\xc44\xa1\xea\x18\x11\xb6\x8f\xc1%\xcb\xd1\x93+\xdbvo'
@pytest.mark.parametrize("snapshot_id", [o.id for o in StorageData.snapshots])
def test_missing_snapshots(swh_storage, snapshot_id, missing_id):
hashes = [snapshot_id, missing_id]
result = identifiers_missing(swh_storage, ObjectType.CONTENT, hashes)
> assert result == {missing_id}
E AssertionError: assert <generator ob...x7f6bf39cea98> == {b'\xac%\xf1\...1\x93+\xdbvo'}
E Full diff:
E - {b'\xac%\xf1\xc44\xa1\xea\x18\x11\xb6\x8f\xc1%\xcb\xd1\x93+\xdbvo'}
E + <generator object Storage.content_missing_per_sha1_git at 0x7f6bf39cea98>
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_identifer.py:56: AssertionError
TEST RESULT
TEST RESULT
- Run At
- May 5 2022, 8:30 PM