Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.opam.tests.test_lister::test_mock_init_repository_init
Failed

TEST RESULT

Run At
Sep 24 2021, 11:30 AM
Details
mock_opam = (<MagicMock name='call' id='140292354361608'>, <MagicMock name='Popen' id='140292339963496'>) tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_mock_init_repository_init0') datadir = '/var/lib/jenkins/workspace/DLS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/lister/opam/tests/data' def test_mock_init_repository_init(mock_opam, tmp_path, datadir): """Fixture to bypass the actual opam calls within the test context. """ mock_init, mock_popen = mock_opam instance = "fake" instance_url = f"file://{datadir}/{instance}" opam_root = str(tmp_path / "test-opam") assert not os.path.exists(opam_root) # This will initialize an opam directory with the instance opam_init(opam_root, instance, instance_url, {}) assert mock_init.called > assert mock_init.call_args.args[0] == [ "opam", "init", "--reinit", "--bare", "--no-setup", "--root", opam_root, instance, instance_url, ] E AssertionError: assert 'args' == ['opam', 'ini...'--root', ...] E +'args' E -['opam', 'init', '--reinit', '--bare', '--no-setup', '--root', '/tmp/pytest-of-jenkins/pytest-0/test_mock_init_repository_init0/test-opam', 'fake', 'file:///var/lib/jenkins/workspace/DLS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/lister/opam/tests/data/fake'] .tox/py3/lib/python3.7/site-packages/swh/lister/opam/tests/test_lister.py:48: AssertionError