@pytest.mark.network
def test_install_using_install_option_and_editable(script, tmpdir):
 folder = 'script_folder'
 script.scratch_path.join(folder).mkdir()
 url = 'git+git://github.com/pypa/pip-test-package'
 result = script.pip('install', '-e', ('%s#egg=pip-test-package' % local_checkout(url, tmpdir.join('cache'))), ('--install-option=--script-dir=%s' % folder), expect_stderr=True)
 script_file = (((((script.venv / 'src') / 'pip-test-package') / folder) / 'pip-test-package') + script.exe)
 assert (script_file in result.files_created)

@ pytest . mark . network def test_install_using_install_option_and_editable ( script , tmpdir ) : folder = 'script_folder' script . scratch_path . join ( folder ) . mkdir ( ) url = 'git+git://github.com/pypa/pip-test-package' result = script . pip ( 'install' , '-e' , ( '%s#egg=pip-test-package' % local_checkout ( url , tmpdir . join ( 'cache' ) ) ) , ( '--install-option=--script-dir=%s' % folder ) , expect_stderr = True ) script_file = ( ( ( ( ( script . venv / 'src' ) / 'pip-test-package' ) / folder ) / 'pip-test-package' ) + script . exe ) assert ( script_file in result . files_created )
test installing a tool using -e and --install-option .