self = <swh.storage.tests.test_api_client.TestStorage object at 0x7fd66bb17f98>
swh_storage = <RemoteStorage url=mock://example.com/>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fd66b6305f8>
def test_content_get_metadata(self, swh_storage, sample_data):
cont1, cont2 = sample_data.contents[:2]
swh_storage.content_add([cont1, cont2])
actual_md = swh_storage.content_get_metadata([cont1.sha1, cont2.sha1])
# we only retrieve the metadata so no data nor ctime within
expected_cont1, expected_cont2 = [
attr.evolve(c, data=None).to_dict() for c in [cont1, cont2]
]
> expected_cont1.pop("ctime")
E KeyError: 'ctime'
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:632: KeyError
TEST RESULT
TEST RESULT
- Run At
- Aug 7 2020, 11:38 AM