Test --system flag

This commit is contained in:
Dan Ryan
2017-11-19 17:32:58 -05:00
parent 63934a4e5e
commit aa13648a1b
+18
View File
@@ -787,6 +787,24 @@ maya = "*"
c = p.pipenv('install')
assert c.return_code == 0
@pytest.mark.lock
@pytest.mark.complex
def test_resolve_system_python_no_virtualenv(self):
with temp_environ():
os.environ['PIPENV_IGNORE_VIRTUALENVS'] = '1'
os.environ['PIPENV_USE_SYSTEM'] = '1'
os.environ['PIP_PYTHON_PATH'] = '/bin/python'
with PipenvInstance() as p:
with open(p.pipfile_path, 'w') as f:
contents = """
[packages]
tablib = "*"
""".strip()
f.write(contents)
c = p.pipenv('install --system')
assert c.return_code == 0
@pytest.mark.lock
@pytest.mark.deploy
def test_deploy_works(self):