swh_storage = <swh.storage.postgresql.storage.Storage object at 0x7f6c2ccd2668>
revision_id = b"\xbe\xb2\x84M\xff0e\x8e'W<\xb4n\xb5Y\x80\xe9t\xb3\x91"
missing_id = b'\x82~\x90\xe0\xa2O\x80\xa6\x19H\xcf\xfb\xc5X\xe0\x9e\x80;\x00j'
@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...x7f6bf39ce480> == {b'\x82~\x90\...9e\x80;\x00j'}
E Full diff:
E - {b'\x82~\x90\xe0\xa2O\x80\xa6\x19H\xcf\xfb\xc5X\xe0\x9e\x80;\x00j'}
E + <generator object Storage.revision_missing at 0x7f6bf39ce480>
.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