@pytest.mark.network
def test_git_with_non_editable_unpacking(script, tmpdir):
 result = script.pip('install', '--global-option=--version', local_checkout('git+http://github.com/pypa/pip-test-package.git@0.1.2#egg=pip-test-package', tmpdir.join('cache')), expect_error=True)
 assert ('0.1.2' in result.stdout)

@ pytest . mark . network def test_git_with_non_editable_unpacking ( script , tmpdir ) : result = script . pip ( 'install' , '--global-option=--version' , local_checkout ( 'git+http://github.com/pypa/pip-test-package.git@0.1.2#egg=pip-test-package' , tmpdir . join ( 'cache' ) ) , expect_error = True ) assert ( '0.1.2' in result . stdout )
test cloning a git repository from a non-editable url with a given tag .