Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Feb 25 2021, 3:58 PM
Details
swh_storage = <swh.storage.filter.FilteringProxyStorage object at 0x7fdb89123f28> 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_visit_error_with_snapshot0') mocker = <pytest_mock.plugin.MockerFixture object at 0x7fdb89123390> def test_visit_error_with_snapshot_partial(swh_storage, datadir, tmp_path, mocker): """Incomplete ingestion leads to a 'partial' ingestion status""" mock = mocker.patch("swh.loader.mercurial.loader.HgBundle20Loader.store_metadata") mock.side_effect = ValueError 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(swh_storage, repo_url) .tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/tests/test_loader.py:222: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/loader.py:142: in __init__ os.environ.update(get_minimum_env()) .tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/utils.py:36: in get_minimum_env "PATH": os.environ["PATH"], _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = environ({}), key = 'PATH' def __getitem__(self, key): try: value = self._data[self.encodekey(key)] except KeyError: # raise KeyError with the original key value > raise KeyError(key) from None E KeyError: 'PATH' /usr/lib/python3.7/os.py:678: KeyError