Merge pull request #7578 from uranusjr/test-uppercase-console-scripts

Add test for uppercase script name
This commit is contained in:
Christopher Hunt 2020-01-13 09:42:38 +08:00 committed by GitHub
commit 7e65a5a40f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

0
news/3801.trivial Normal file
View File

View File

@ -274,6 +274,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):
"""