@pytest.mark.network
def test_download_setuptools(script):
 result = script.pip('download', 'setuptools')
 setuptools_prefix = str((Path('scratch') / 'setuptools'))
 assert any((path.startswith(setuptools_prefix) for path in result.files_created))

@ pytest . mark . network def test_download_setuptools ( script ) : result = script . pip ( 'download' , 'setuptools' ) setuptools_prefix = str ( ( Path ( 'scratch' ) / 'setuptools' ) ) assert any ( ( path . startswith ( setuptools_prefix ) for path in result . files_created ) )
it should download and not install if requested .