Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_in_memory.TestStorage::test_origin_visit_status_get__validation_failure
Failed

TEST RESULT

Run At
Jul 29 2020, 4:45 PM
Details
self = <swh.storage.tests.test_storage.TestStorage object at 0x7fd62ddbc0b8> swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7fd62ddbc278> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fd62ddbcfd0> def test_origin_visit_status_get__validation_failure( self, swh_storage, sample_data ): origin = sample_data.origin swh_storage.origin_add([origin]) ov1 = swh_storage.origin_visit_add( [ OriginVisit( origin=origin.url, date=sample_data.date_visit1, type=sample_data.type_visit1, ), ] )[0] with pytest.raises( StorageArgumentException, match="page_token must be a string" ): # page_token not str > swh_storage.origin_visit_status_get(origin.url, ov1.visit, page_token=10) E AttributeError: 'InMemoryStorage' object has no attribute 'origin_visit_status_get' .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1345: AttributeError