Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.mercurial.tests.test_identify::test_all
Failed

TEST RESULT

Run At
Oct 19 2020, 6:11 PM
Details
datadir = '/var/lib/jenkins/workspace/DLDHG/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/tests/data' tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_all0') def test_all(datadir: str, tmp_path: str): archive_name = "hello" archive_path = os.path.join(datadir, f"{archive_name}.tgz") repo_url = prepare_repository_from_archive(archive_path, archive_name, tmp_path) directory = urlsplit(repo_url).path runner = CliRunner() result = runner.invoke(main, ["-d", directory, "all"]) expected = ( "\n".join( [ "swh:1:dir:b3f85f210ff86d334575f64cb01c5bf49895b63e", "\t82e55d328c8ca4ee16520036c0aaace03a5beb65", "swh:1:dir:8f2be433c945384c85920a8e60f2a68d2c0f20fb", "\tb985ae4a07e12ac662f45a171e2d42b13be5b50c", "swh:1:rev:93b48d515580522a05f389bec93227fc8e43d940", "\t0a04b987be5ae354b710cefeba0e2d9de7ad41a9", "swh:1:rev:8dd3db5d5519e4947f035d141581d304565372d2", "\t82e55d328c8ca4ee16520036c0aaace03a5beb65", "swh:1:rev:c3dbe4fbeaaa98dd961834e4007edb3efb0e2a27", "\tb985ae4a07e12ac662f45a171e2d42b13be5b50c", "swh:1:rel:515c4d72e089404356d0f4b39d60f948b8999140\t0.1", "swh:1:snp:d35668e02e2ba4321dc951cd308cf883786f918a\t{directory}", ] ) + "\n" ) > assert result.output == expected E AssertionError: assert '' == 'swh:1:dir:b3...{directory}\n' E - swh:1:dir:b3f85f210ff86d334575f64cb01c5bf49895b63e E - 82e55d328c8ca4ee16520036c0aaace03a5beb65 E - swh:1:dir:8f2be433c945384c85920a8e60f2a68d2c0f20fb E - b985ae4a07e12ac662f45a171e2d42b13be5b50c E - swh:1:rev:93b48d515580522a05f389bec93227fc8e43d940 E - 0a04b987be5ae354b710cefeba0e2d9de7ad41a9 E - swh:1:rev:8dd3db5d5519e4947f035d141581d304565372d2... E E ...Full output truncated (6 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/tests/test_identify.py:86: AssertionError