Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 29 2021, 10:23 AM
Details
swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f384ea43b70> def test_snapshot_resolve_alias_cycle_found(swh_storage): alias1_name = b"alias_1" alias2_name = b"alias_2" alias3_name = b"alias_3" alias4_name = b"alias_4" alias1_branch_info = SnapshotBranch( target=alias2_name, target_type=TargetType.ALIAS ) alias2_branch_info = SnapshotBranch( target=alias3_name, target_type=TargetType.ALIAS ) alias3_branch_info = SnapshotBranch( target=alias4_name, target_type=TargetType.ALIAS ) alias4_branch_info = SnapshotBranch( target=alias2_name, target_type=TargetType.ALIAS ) snapshot = Snapshot( branches={ alias1_name: alias1_branch_info, alias2_name: alias2_branch_info, alias3_name: alias3_branch_info, alias4_name: alias4_branch_info, } ) > swh_storage.snapshot_add([snapshot]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_snapshot.py:401: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7f384ea43b70> snapshots = [Snapshot(branches=ImmutableDict({b'alias_1': SnapshotBranch(target=b'alias_2', target_type=<TargetType.ALIAS: 'alias'..._2', target_type=<TargetType.ALIAS: 'alias'>)}), id=b'E\x9e\x9d\xc7\xa7\xb4#<\x9d\xbbc\x9a\x94\x88C\x8e\xcd\xa6Q\x1a')] 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