@pytest.mark.network
def test_install_user_wheel(script, virtualenv, data):
 virtualenv.system_site_packages = True
 script.pip('install', 'wheel')
 result = script.pip('install', 'has.script==1.0', '--user', '--no-index', ('--find-links=' + data.find_links))
 egg_info_folder = (script.user_site / 'has.script-1.0.dist-info')
 assert (egg_info_folder in result.files_created), str(result)
 script_file = (script.user_bin / 'script.py')
 assert (script_file in result.files_created)

@ pytest . mark . network def test_install_user_wheel ( script , virtualenv , data ) : virtualenv . system_site_packages = True script . pip ( 'install' , 'wheel' ) result = script . pip ( 'install' , 'has.script==1.0' , '--user' , '--no-index' , ( '--find-links=' + data . find_links ) ) egg_info_folder = ( script . user_site / 'has.script-1.0.dist-info' ) assert ( egg_info_folder in result . files_created ) , str ( result ) script_file = ( script . user_bin / 'script.py' ) assert ( script_file in result . files_created )
test user install from wheel .