Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_cassandra.TestCassandraStorage::test_origin_add
Failed

TEST RESULT

Run At
Apr 21 2020, 2:18 PM
Details
self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f144406bf28> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f1444062208> def test_origin_add(self, swh_storage): origin0 = swh_storage.origin_get([data.origin])[0] assert origin0 is None origin1, origin2 = swh_storage.origin_add([data.origin, data.origin2]) actual_origin = swh_storage.origin_get([{"url": data.origin["url"],}])[0] assert actual_origin["url"] == origin1["url"] actual_origin2 = swh_storage.origin_get([{"url": data.origin2["url"],}])[0] assert actual_origin2["url"] == origin2["url"] if "id" in actual_origin: del actual_origin["id"] del actual_origin2["id"] assert list(swh_storage.journal_writer.journal.objects) == [ ("origin", Origin.from_dict(actual_origin)), ("origin", Origin.from_dict(actual_origin2)), ] swh_storage.refresh_stat_counters() > assert swh_storage.stat_counters()["origin"] == 2 E assert 3 == 2 E +3 E -2 .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1315: AssertionError