Skip to content

Commit

Permalink
Update integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Ryan <dan@danryan.co>
  • Loading branch information
techalchemy committed Jun 22, 2018
1 parent 983982e commit f1f6bfc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/integration/test_pipenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,21 @@ def test_activate_virtualenv_no_source():
@pytest.mark.cli
def test_deploy_works(PipenvInstance, pypi):

with PipenvInstance(pypi=pypi) as p:
with PipenvInstance(pypi=pypi, chdir=True) as p:
with open(p.pipfile_path, 'w') as f:
contents = """
[packages]
requests = "==2.14.0"
flask = "==0.12.2"
[dev-packages]
pytest = "==3.1.1"
""".strip()
f.write(contents)
c = p.pipenv('install')
c = p.pipenv('install --verbose')
if c.return_code != 0:
assert c.err == '' or c.err is None
assert c.out == ''
assert c.return_code == 0
c = p.pipenv('lock')
assert c.return_code == 0
Expand Down

0 comments on commit f1f6bfc

Please sign in to comment.