mirror of https://github.com/pypa/pip
Refactor test to remove unneeded network dep
This commit is contained in:
parent
10022df906
commit
4def73ca3a
|
@ -255,15 +255,18 @@ def test_uninstall_gui_scripts(script):
|
|||
assert not script_name.exists()
|
||||
|
||||
|
||||
@pytest.mark.network
|
||||
def test_uninstall_console_scripts(script):
|
||||
"""
|
||||
Test uninstalling a package with more files (console_script entry points,
|
||||
extra directories).
|
||||
"""
|
||||
args = ['install']
|
||||
args.append('discover')
|
||||
result = script.pip(*args)
|
||||
pkg_path = create_test_package_with_setup(
|
||||
script,
|
||||
name='discover',
|
||||
version='0.1',
|
||||
entry_points={'console_scripts': ['discover = discover:main']},
|
||||
)
|
||||
result = script.pip('install', pkg_path)
|
||||
assert script.bin / 'discover' + script.exe in result.files_created, (
|
||||
sorted(result.files_created.keys())
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue