diff options
author | Stéphane Bidoul <stephane.bidoul@gmail.com> | 2023-03-18 15:05:09 +0100 |
---|---|---|
committer | Pradyun Gedam <pradyunsg@gmail.com> | 2023-03-27 11:55:20 +0100 |
commit | a4c91124ce4b1215215c7164b09afb6d31e137c9 (patch) | |
tree | 8d31b584f4ff8f55664dc97fe5b6e39661322869 /tests | |
parent | 7b11b5328bd69f510646f8947424d94f6d10aa4d (diff) | |
download | pip-a4c91124ce4b1215215c7164b09afb6d31e137c9.tar.gz |
Update entrypoint tests
console_script entrypoints declarations are stricter when
we don't use setup.py install.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/test_uninstall.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/functional/test_uninstall.py b/tests/functional/test_uninstall.py index b0e12f6af..83af0dd52 100644 --- a/tests/functional/test_uninstall.py +++ b/tests/functional/test_uninstall.py @@ -219,7 +219,11 @@ def test_uninstall_overlapping_package( @pytest.mark.parametrize( - "console_scripts", ["test_ = distutils_install", "test_:test_ = distutils_install"] + "console_scripts", + [ + "test_ = distutils_install:test", + "test_:test_ = distutils_install:test_test", + ], ) def test_uninstall_entry_point_colon_in_name( script: PipTestEnvironment, console_scripts: str @@ -266,7 +270,7 @@ def test_uninstall_gui_scripts(script: PipTestEnvironment) -> None: version="0.1", entry_points={ "gui_scripts": [ - "test_ = distutils_install", + "test_ = distutils_install:test", ], }, ) @@ -300,6 +304,7 @@ def test_uninstall_console_scripts(script: PipTestEnvironment) -> None: os.path.join(script.venv, "build"), "cache", os.path.join("scratch", "discover", "discover.egg-info"), + os.path.join("scratch", "discover", "build"), ], ) @@ -314,7 +319,7 @@ def test_uninstall_console_scripts_uppercase_name(script: PipTestEnvironment) -> version="0.1", entry_points={ "console_scripts": [ - "Test = distutils_install", + "Test = distutils_install:Test", ], }, ) |