@pytest.mark.network
def test_install_wheel_with_target(script, data):
 script.pip('install', 'wheel')
 target_dir = (script.scratch_path / 'target')
 result = script.pip('install', 'simple.dist==0.1', '-t', target_dir, '--no-index', ('--find-links=' + data.find_links))
 assert (((Path('scratch') / 'target') / 'simpledist') in result.files_created), str(result)

@ pytest . mark . network def test_install_wheel_with_target ( script , data ) : script . pip ( 'install' , 'wheel' ) target_dir = ( script . scratch_path / 'target' ) result = script . pip ( 'install' , 'simple.dist==0.1' , '-t' , target_dir , '--no-index' , ( '--find-links=' + data . find_links ) ) assert ( ( ( Path ( 'scratch' ) / 'target' ) / 'simpledist' ) in result . files_created ) , str ( result )
test installing a wheel using pip install --target .