swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f393c1a60f0>
@pytest.fixture
def swh_origins(swh_storage: StorageInterface) -> Iterable[Origin]:
origins = [Origin.from_dict(o) for o in gen_origins(n=100)]
> swh_storage.origin_add(origins)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/conftest.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.in_memory.InMemoryStorage object at 0x7f393c1a60f0>
origins = [Origin(url='svn://example.com/stuff'), Origin(url='http://xn--n28h.tld/stuff/'), Origin(url='http://example.com'), Or...ff/'), Origin(url='http://some.long.host.name/'), Origin(url='https://some.long.host.name/path/with/qargs?q=1&b'), ...]
def origin_add(self, origins: List[Origin]) -> Dict[str, int]:
> if not self._allow_overwrite:
E AttributeError: 'InMemoryStorage' object has no attribute '_allow_overwrite'
.tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:940: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Apr 29 2021, 10:23 AM