Skip to content

Commit

Permalink
[#2504] Add test for VCS dep with extras
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHayes committed Jul 11, 2018
1 parent 7ddccf8 commit d1c5ec6
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion tests/integration/test_lock.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pytest
import os
import six

from pipenv.utils import temp_environ

Expand Down Expand Up @@ -348,6 +347,28 @@ def test_lock_editable_vcs_without_install(PipenvInstance, pypi):
assert c.return_code == 0


@pytest.mark.extras
@pytest.mark.lock
@pytest.mark.vcs
@pytest.mark.needs_internet
def test_lock_editable_vcs_with_extras_without_install(PipenvInstance, pypi):
with PipenvInstance(pypi=pypi, chdir=True) as p:
with open(p.pipfile_path, 'w') as f:
f.write("""
[packages]
requests = {git = "https://github.com/requests/requests.git", editable = true, extras = ["security"]}
""".strip())
c = p.pipenv('lock')
assert c.return_code == 0
assert 'requests' in p.lockfile['default']
assert 'idna' in p.lockfile['default']
assert 'chardet' in p.lockfile['default']
assert 'cryptography' in p.lockfile['default']
assert 'pyOpenSSL' in p.lockfile['default']
c = p.pipenv('install')
assert c.return_code == 0


@pytest.mark.lock
@pytest.mark.skip(reason="This doesn't work for some reason.")
def test_lock_respecting_python_version(PipenvInstance, pypi):
Expand Down

0 comments on commit d1c5ec6

Please sign in to comment.