Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.vault.tests.test_cookers.TestSnapshotCooker::test_snapshot_tags[cook_extract_snapshot_git_bare]
Failed

TEST RESULT

Run At
Jul 16 2021, 2:34 PM
Details
self = <swh.vault.tests.test_cookers.TestSnapshotCooker object at 0x7fb8495dee48> git_loader = <function git_loader.<locals>._create_loader at 0x7fb8496591e0> cook_extract_snapshot = <function cook_extract_snapshot_git_bare at 0x7fb84a93b840> def test_snapshot_tags(self, git_loader, cook_extract_snapshot): (loader, main_rev_id) = self.load_repo_tags(git_loader) snp_id = loader.loaded_snapshot_id with cook_extract_snapshot(loader.storage, snp_id) as (ert, p): > self.check_snapshot_tags(ert, p, main_rev_id) .tox/py3/lib/python3.7/site-packages/swh/vault/tests/test_cookers.py:1062: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.vault.tests.test_cookers.TestSnapshotCooker object at 0x7fb8495dee48> ert = <swh.vault.tests.test_cookers.TestRepo object at 0x7fb849577198> p = PosixPath('/tmp/tmp-vault-clone-o52vt493') obj_id = b"\xcc'p\xa9\x8a;GW0\xb1\xd8\xb5t\xa2\xb3\xecM^u\x81" def check_snapshot_tags(self, ert, p, obj_id): assert ( hashutil.hash_to_bytehex(obj_id) == ert.repo.refs[b"HEAD"] == ert.repo.refs[b"refs/heads/master"] == ert.repo.refs[b"refs/remotes/origin/HEAD"] == ert.repo.refs[b"refs/remotes/origin/master"] == ert.repo.refs[b"refs/tags/t5"] ) c2_id = ert.repo.refs[b"refs/tags/t2"] c5_id = hashutil.hash_to_bytehex(obj_id) assert ert.repo[c5_id].parents == [c2_id] t5a = ert.repo[ert.repo.refs[b"refs/tags/t5a"]] > assert t5a.message == b"tag 5" E AssertionError: assert b'tag 5\n' == b'tag 5' E Full diff: E - b'tag 5' E + b'tag 5\n' E ? ++ .tox/py3/lib/python3.7/site-packages/swh/vault/tests/test_cookers.py:943: AssertionError