Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 22 2021, 8:33 PM
Details
def test_debian_origins_from_row(): """Tests debian_origins_from_row on a real example (with some parts omitted, for conciseness).""" origin_url = "deb://Debian/packages/kalgebra" visit = OriginVisit( origin=origin_url, date=datetime.datetime( 2020, 1, 27, 19, 32, 3, 925498, tzinfo=datetime.timezone.utc, ), type="deb", visit=280, ) storage = get_storage("memory") storage.origin_add( [ Origin(url=origin_url), > Origin(url="http://snapshot.debian.org/package/kalgebra/"), ] ) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/migrate_extrinsic_metadata/test_debian.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7fb62203ca90> origins = [Origin(url='deb://Debian/packages/kalgebra'), Origin(url='http://snapshot.debian.org/package/kalgebra/')] def origin_add(self, origins: List[Origin]) -> Dict[str, int]: > if self._check_missing: E AttributeError: 'InMemoryStorage' object has no attribute '_check_missing' .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:937: AttributeError