Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.migrate_extrinsic_metadata.test_pypi::test_pypi_origin_from_project_name
Failed

TEST RESULT

Run At
Apr 29 2021, 10:28 AM
Details
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f4554c911d0> def test_pypi_origin_from_project_name(mocker): origin_url = "https://pypi.org/project/ProjectName/" storage = get_storage("memory") revision_id = b"41" * 10 snapshot_id = b"42" * 10 > storage.origin_add([Origin(url=origin_url)]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_pypi.py:154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7f4554c91080> origins = [Origin(url='https://pypi.org/project/ProjectName/')] 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