@pytest.mark.network
def test_download_vcs_link(script):
 result = script.pip('install', '-d', '.', 'git+git://github.com/pypa/pip-test-package.git', expect_stderr=True)
 assert ((Path('scratch') / 'pip-test-package-0.1.1.zip') in result.files_created)
 assert ((script.site_packages / 'piptestpackage') not in result.files_created)

@ pytest . mark . network def test_download_vcs_link ( script ) : result = script . pip ( 'install' , '-d' , '.' , 'git+git://github.com/pypa/pip-test-package.git' , expect_stderr = True ) assert ( ( Path ( 'scratch' ) / 'pip-test-package-0.1.1.zip' ) in result . files_created ) assert ( ( script . site_packages / 'piptestpackage' ) not in result . files_created )
it should allow -d flag for vcs links .