From 2a7cc2676708d9aaa03bc8849955165fc85372bd Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Thu, 22 Nov 2018 13:55:50 -0500 Subject: [PATCH] Fix broken tests Signed-off-by: Dan Ryan --- tests/integration/test_install_twists.py | 8 +++++--- tests/integration/test_install_uri.py | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/integration/test_install_twists.py b/tests/integration/test_install_twists.py index e8fdfd33..4a623040 100644 --- a/tests/integration/test_install_twists.py +++ b/tests/integration/test_install_twists.py @@ -2,7 +2,7 @@ import os import shutil from pipenv.project import Project from pipenv._compat import Path - +from pipenv.vendor import delegator from pipenv.utils import mkdir_p, temp_environ import pytest @@ -357,9 +357,11 @@ def test_multiple_editable_packages_should_not_race(PipenvInstance, pypi, testsr with PipenvInstance(pypi=pypi, chdir=True) as p: for pkg_name in pkgs: - source_path = p._pipfile.get_fixture_path("git/{0}".format(pkg_name)).as_posix() + source_path = p._pipfile.get_fixture_path("git/{0}/".format(pkg_name)).as_posix() + c = delegator.run("git clone {0} ./{1}".format(source_path, pkg_name)) + assert c.return_code == 0 - pipfile_string += '"{0}" = {{path = "{1}", editable = true}}\n'.format(pkg_name, source_path) + pipfile_string += '"{0}" = {{path = "./{0}", editable = true}}\n'.format(pkg_name) with open(p.pipfile_path, 'w') as f: f.write(pipfile_string.strip()) diff --git a/tests/integration/test_install_uri.py b/tests/integration/test_install_uri.py index 25f668ed..3d2be984 100644 --- a/tests/integration/test_install_uri.py +++ b/tests/integration/test_install_uri.py @@ -191,6 +191,7 @@ def test_install_local_vcs_not_in_lockfile(PipenvInstance, pip_src_dir): # six_path = os.path.join(p.path, "six") six_path = p._pipfile.get_fixture_path("git/six/").as_posix() c = delegator.run("git clone {0} ./six".format(six_path)) + assert c.return_code == 0 c = p.pipenv("install -e ./six".format(six_path)) assert c.return_code == 0 six_key = list(p.pipfile["packages"].keys())[0]