swh_storage = <swh.storage.postgresql.storage.Storage object at 0x7f6c2cd23518>
revision_id = b'\x84\xd8\xe7\x08\x1bG\xeb\xb8\x8c\xad\x9f\xa1\xf2]\xe5\xf30\x87*7'
missing_id = b'\xa8&\xd6\x87\xfb\xbf$\x08\xf2\x18\x1b\xd0\x08dU+E\xd1\xe7n'
@pytest.mark.parametrize("revision_id", [o.id for o in StorageData.revisions])
def test_missing_revisions(swh_storage, revision_id, missing_id):
hashes = [revision_id, missing_id]
result = identifiers_missing(swh_storage, ObjectType.REVISION, hashes)
> assert result == {missing_id}
E AssertionError: assert <generator ob...x7f6bf39b5cf0> == {b'\xa8&\xd6\...U+E\xd1\xe7n'}
E Full diff:
E - {b'\xa8&\xd6\x87\xfb\xbf$\x08\xf2\x18\x1b\xd0\x08dU+E\xd1\xe7n'}
E + <generator object Storage.revision_missing at 0x7f6bf39b5cf0>
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_identifer.py:40: AssertionError
TEST RESULT
TEST RESULT
- Run At
- May 5 2022, 8:30 PM