mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 14:50:16 +00:00
@@ -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())
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user