Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 29 2021, 10:23 AM
Details
swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f384d0cf828> def test_snapshot_resolve_alias_missing_branch(swh_storage): missing_branch_name = b"missing_branch" alias_name = b"rev_alias" alias_branch = SnapshotBranch( target=missing_branch_name, target_type=TargetType.ALIAS ) snapshot = Snapshot(id=b"42" * 10, branches={alias_name: alias_branch,}) > swh_storage.snapshot_add([snapshot]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_snapshot.py:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7f384d0cf828> snapshots = [Snapshot(branches=ImmutableDict({b'rev_alias': SnapshotBranch(target=b'missing_branch', target_type=<TargetType.ALIAS: 'alias'>)}), id=b'42424242424242424242')] def snapshot_add(self, snapshots: List[Snapshot]) -> Dict: > 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:668: AttributeError