swh_storage = <swh.storage.proxies.filter.FilteringProxyStorage object at 0x7f2dfd3c10f0>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f2dfd3c0da0>
def test_filtering_proxy_storage_skipped_content_missing_sha1_git(
swh_storage, sample_data
):
sample_contents = [
attr.evolve(c, sha1_git=None) for c in sample_data.skipped_contents
]
sample_content, sample_content2 = [c.to_dict() for c in sample_contents[:2]]
content = next(swh_storage.skipped_content_missing([sample_content]))
assert content["sha1"] == sample_content["sha1"]
s = swh_storage.skipped_content_add([sample_contents[0]])
> assert s == {
"skipped_content:add": 1,
}
E AssertionError: assert {} == {'skipped_content:add': 1}
E Right contains 1 more item:
E {'skipped_content:add': 1}
E Full diff:
E - {'skipped_content:add': 1}
E + {}
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_filter.py:77: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Oct 6 2021, 6:49 PM