swh_storage = <swh.storage.postgresql.storage.Storage object at 0x7f6c07cef668>
snapshot_id = b'\x9b\x92.m\x8d[\x80<\x15\x82\xaa\xbeU%\xb7\xb9\x11Px\x8e'
missing_id = b'\xfa\x06>\xca\xceA%\xff{\x9bK\xd6\x8b\x15\xbc\xe2J\x19U\xd2'
@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...x7f6bf39b59a8> == {b'\xfa\x06>\...e2J\x19U\xd2'}
E Full diff:
E - {b'\xfa\x06>\xca\xceA%\xff{\x9bK\xd6\x8b\x15\xbc\xe2J\x19U\xd2'}
E + <generator object Storage.content_missing_per_sha1_git at 0x7f6bf39b59a8>
.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