Skip to content

Commit

Permalink
Tests for #2273 and #2301
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Ryan <[email protected]>
  • Loading branch information
techalchemy committed Jun 24, 2018
1 parent b2f6932 commit ef913b2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/integration/test_install_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,3 +355,25 @@ def test_install_ignores_requirements_with_existing_projects(PipenvInstance, pyp
assert 'six' in p.pipfile['packages']
assert 'chardet' not in p.pipfile['packages']
assert 'pytz' not in p.pipfile['packages']


@pytest.mark.deploy
@pytest.mark.system
def test_system_and_deploy_work(PipenvInstance, pypi):
with PipenvInstance(chdir=True, pypi=pypi) as p:
c = p.pipenv('install six requests')
assert c.return_code == 0
c = p.pipenv('--rm')
assert c.return_code == 0
c = delegator.run('virtualenv .venv')
assert c.return_code == 0
c = p.pipenv('install --system --deploy')
assert c.return_code == 0
c = p.pipenv('--rm')
assert c.return_code == 0
Path(p.pipfile_path).write_text("""
[packages]
requests
""".strip())
c = p.pipenv('install --system')
assert c.return_code == 0

0 comments on commit ef913b2

Please sign in to comment.