self = <swh.storage.tests.test_api_client.TestStorageApi object at 0x7f292404e3c8>
swh_storage = <RemoteStorage url=mock://example.com/>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f2924315518>
def test_release_add_twice(self, swh_storage, sample_data):
release, release2 = sample_data.releases[:2]
actual_result = swh_storage.release_add([release])
assert actual_result == {"release:add": 1}
assert list(swh_storage.journal_writer.journal.objects) == [
("release", release)
]
actual_result = swh_storage.release_add([release, release2, release, release2])
> assert actual_result == {"release:add": 1}
E AssertionError: assert {'release:add': 2} == {'release:add': 1}
E Differing items:
E {'release:add': 2} != {'release:add': 1}
E Full diff:
E - {'release:add': 1}
E ? ^
E + {'release:add': 2}
E ? ^
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:1315: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 7 2021, 4:55 PM