swh_storage = <swh.storage.postgresql.storage.Storage object at 0x7f6c2cdfcb70>
release_id = b'\x1c]B\xe6\x03\xce.\xeaD\x91\x7f\xad\xcav\xc7\x8b\xadv\xae\xb9'
missing_id = b'\xf3\x9b\x1a\x8e\x0e\x0f\xef\xf7f\x0b\x97\xba\xf0\xea\xc1\xf4\xc9\xd8\xca\x06'
@pytest.mark.parametrize("release_id", [o.id for o in StorageData.releases])
def test_missing_releases(swh_storage, release_id, missing_id):
hashes = [release_id, missing_id]
result = identifiers_missing(swh_storage, ObjectType.RELEASE, hashes)
> assert result == {missing_id}
E AssertionError: assert <generator ob...x7f6bf39a1228> == {b'\xf3\x9b\x...\xd8\xca\x06'}
E Full diff:
E + <generator object Storage.release_missing at 0x7f6bf39a1228>
E - {
E - b'\xf3\x9b\x1a\x8e\x0e\x0f\xef\xf7f\x0b\x97\xba\xf0\xea\xc1\xf4'
E - b'\xc9\xd8\xca\x06',
E - }
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_identifer.py:48: AssertionError
TEST RESULT
TEST RESULT
- Run At
- May 5 2022, 8:30 PM