Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_filter::test_filtering_proxy_storage_content
Failed

TEST RESULT

Run At
Oct 6 2021, 6:49 PM
Details
swh_storage = <swh.storage.proxies.filter.FilteringProxyStorage object at 0x7f2dfd3c49e8> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f2dfd39f908> def test_filtering_proxy_storage_content(swh_storage, sample_data): sample_content = sample_data.content content = swh_storage.content_get_data(sample_content.sha1) assert content is None s = swh_storage.content_add([sample_content]) assert s == { "content:add": 1, "content:add:bytes": sample_content.length, } content = swh_storage.content_get_data(sample_content.sha1) assert content is not None s = swh_storage.content_add([sample_content]) > assert s == { "content:add": 0, "content:add:bytes": 0, } E AssertionError: assert {} == {'content:add...add:bytes': 0} E Right contains 2 more items: E {'content:add': 0, 'content:add:bytes': 0} E Full diff: E - {'content:add': 0, 'content:add:bytes': 0} E + {} .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_filter.py:38: AssertionError