swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_loader_hg_new_visit0/loader.yml'
datadir = '/var/lib/jenkins/workspace/DLDHG/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/tests/resources'
tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_loader_hg_new_visit0')
def test_loader_hg_new_visit(swh_config, datadir, tmp_path):
"""Eventful visit should yield 1 snapshot"""
archive_name = "the-sandbox"
archive_path = os.path.join(datadir, f"{archive_name}.tgz")
repo_url = prepare_repository_from_archive(archive_path, archive_name, tmp_path)
loader = HgBundle20Loader(repo_url)
> assert loader.load() == {"status": "eventful"}
E AssertionError: assert {'status': 'failed'} == {'status': 'eventful'}
E Differing items:
E {'status': 'failed'} != {'status': 'eventful'}
E Full diff:
E - {'status': 'eventful'}
E + {'status': 'failed'}
.tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/tests/test_loader.py:68: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 7 2020, 9:33 AM