Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.algos.test_snapshot::test_snapshot_resolve_alias
Failed

TEST RESULT

Run At
Apr 22 2021, 8:33 PM
Details
swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7fb60c8bed30> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb60c8bb5c0> def test_snapshot_resolve_alias(swh_storage, sample_data): rev_branch_name = b"revision_branch" rel_branch_name = b"release_branch" rev_alias1_name = b"rev_alias1" rev_alias2_name = b"rev_alias2" rev_alias3_name = b"rev_alias3" rel_alias_name = b"rel_alias" rev_branch_info = SnapshotBranch( target=sample_data.revisions[0].id, target_type=TargetType.REVISION, ) rel_branch_info = SnapshotBranch( target=sample_data.releases[0].id, target_type=TargetType.RELEASE, ) rev_alias1_branch_info = SnapshotBranch( target=rev_branch_name, target_type=TargetType.ALIAS ) rev_alias2_branch_info = SnapshotBranch( target=rev_alias1_name, target_type=TargetType.ALIAS ) rev_alias3_branch_info = SnapshotBranch( target=rev_alias2_name, target_type=TargetType.ALIAS ) rel_alias_branch_info = SnapshotBranch( target=rel_branch_name, target_type=TargetType.ALIAS ) snapshot = Snapshot( branches={ rev_branch_name: rev_branch_info, rel_branch_name: rel_branch_info, rev_alias1_name: rev_alias1_branch_info, rev_alias2_name: rev_alias2_branch_info, rev_alias3_name: rev_alias3_branch_info, rel_alias_name: rel_alias_branch_info, } ) > swh_storage.snapshot_add([snapshot]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_snapshot.py:330: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7fb60c8bed30> snapshots = [Snapshot(branches=ImmutableDict({b'revision_branch': SnapshotBranch(target=b'\x01\xa7\x11O6\xfd\xdd^\xf2Q\x1b,\xad\xd...e_branch', target_type=<TargetType.ALIAS: 'alias'>)}), id=b')\xd1@\xf1T.\xd0\xb5\x07\x9a\xb3\x0e\x82\x93\xf5pNe\xd6z')] def snapshot_add(self, snapshots: List[Snapshot]) -> Dict: > 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:665: AttributeError