self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7fc7007e73c8>
swh_storage = <swh.storage.cassandra.storage.CassandraStorage object at 0x7fc7007e7358>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fc7003ea2b0>
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: 'CassandraStorage' object has no attribute 'origin_visit_status_get'
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1342: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Jul 29 2020, 6:01 PM