diff --git a/tests/integration/test_install_uri.py b/tests/integration/test_install_uri.py index cf14f3d9..f64173c4 100644 --- a/tests/integration/test_install_uri.py +++ b/tests/integration/test_install_uri.py @@ -54,6 +54,21 @@ def test_file_urls_work(PipenvInstance, pypi): assert c.return_code == 0 +@pytest.mark.files +@pytest.mark.urls +def test_local_vcs_urls_work(PipenvInstance, pypi): + with PipenvInstance(pypi=pypi, chdir=True) as p: + six_path = Path(p.path, 'six').resolve() + c = delegator.run( + 'git clone ' + 'https://github.com/benjaminp/six.git {0}'.format(six_path) + ) + assert c.return_code == 0 + + c = p.pipenv('install git+{0}#egg=six'.format(six_path.as_uri())) + assert c.return_code == 0 + + @pytest.mark.files @pytest.mark.urls @pytest.mark.needs_internet