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_all_revisions0')
def test_all_revisions(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, "revision"])
expected = dedent(
"""
swh:1:rev:93b48d515580522a05f389bec93227fc8e43d940\t0a04b987be5ae354b710cefeba0e2d9de7ad41a9
swh:1:rev:8dd3db5d5519e4947f035d141581d304565372d2\t82e55d328c8ca4ee16520036c0aaace03a5beb65
swh:1:rev:c3dbe4fbeaaa98dd961834e4007edb3efb0e2a27\tb985ae4a07e12ac662f45a171e2d42b13be5b50c
"""
).lstrip()
> assert result.output == expected
E AssertionError: assert '' == 'swh:1:rev:93...2b13be5b50c\n'
E - swh:1:rev:93b48d515580522a05f389bec93227fc8e43d940 0a04b987be5ae354b710cefeba0e2d9de7ad41a9
E - swh:1:rev:8dd3db5d5519e4947f035d141581d304565372d2 82e55d328c8ca4ee16520036c0aaace03a5beb65
E - swh:1:rev:c3dbe4fbeaaa98dd961834e4007edb3efb0e2a27 b985ae4a07e12ac662f45a171e2d42b13be5b50c
.tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/tests/test_identify.py:32: AssertionError
TEST RESULT
TEST RESULT
- Run At
- May 5 2021, 9:47 PM