Add test for uppercase script name

This commit is contained in:
Tzu-ping Chung 2020-01-10 17:39:47 +05:30
parent 6b51ee1a39
commit 8e72502118
2 changed files with 23 additions and 0 deletions

0
news/3801.trivial Normal file
View File

View File

@ -271,6 +271,29 @@ def test_uninstall_console_scripts(script):
assert_all_changes(result, result2, [script.venv / 'build', 'cache'])
def test_uninstall_console_scripts_uppercase_name(script):
"""
Test uninstalling console script with uppercase character.
"""
pkg_path = create_test_package_with_setup(
script,
name='ep_install',
version='0.1',
entry_points={
"console_scripts": [
"Test = distutils_install",
],
},
)
script_name = script.bin_path.joinpath('Test' + script.exe)
script.pip('install', pkg_path)
assert script_name.exists()
script.pip('uninstall', 'ep_install', '-y')
assert not script_name.exists()
@pytest.mark.network
def test_uninstall_easy_installed_console_scripts(script):
"""