Add test that reproduces #1240

This commit is contained in:
Daniel Watkins
2017-12-22 13:42:26 -05:00
committed by Dan Ryan
parent ce403a5a07
commit 6e811dc7a2
+20
View File
@@ -440,6 +440,26 @@ tablib = "<0.12"
assert 'tablib' in p.lockfile['default']
@pytest.mark.e
@pytest.mark.install
@pytest.mark.vcs
@pytest.mark.resolver
def test_editable_vcs_install_in_pipfile_with_dependency_resolution_doesnt_traceback(self):
# See https://github.com/pypa/pipenv/issues/1240
with PipenvInstance() as p:
with open(p.pipfile_path, 'w') as f:
contents = """
[packages]
requests = {git = "https://github.com/requests/requests.git", editable = true}
"oslo.utils" = "==1.4.0"
""".strip()
f.write(contents)
c = p.pipenv('install')
assert c.return_code == 1
assert 'FileNotFoundError' not in c.out
assert 'FileNotFoundError' not in c.err
@pytest.mark.run
@pytest.mark.install
def test_multiprocess_bug_and_install(self):