mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Test --system flag
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user