Skip to content

Commit a4c9112

Browse files
sbidoulpradyunsg
authored andcommitted
Update entrypoint tests
console_script entrypoints declarations are stricter when we don't use setup.py install.
1 parent 7b11b53 commit a4c9112

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/functional/test_uninstall.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,11 @@ def test_uninstall_overlapping_package(
219219

220220

221221
@pytest.mark.parametrize(
222-
"console_scripts", ["test_ = distutils_install", "test_:test_ = distutils_install"]
222+
"console_scripts",
223+
[
224+
"test_ = distutils_install:test",
225+
"test_:test_ = distutils_install:test_test",
226+
],
223227
)
224228
def test_uninstall_entry_point_colon_in_name(
225229
script: PipTestEnvironment, console_scripts: str
@@ -266,7 +270,7 @@ def test_uninstall_gui_scripts(script: PipTestEnvironment) -> None:
266270
version="0.1",
267271
entry_points={
268272
"gui_scripts": [
269-
"test_ = distutils_install",
273+
"test_ = distutils_install:test",
270274
],
271275
},
272276
)
@@ -300,6 +304,7 @@ def test_uninstall_console_scripts(script: PipTestEnvironment) -> None:
300304
os.path.join(script.venv, "build"),
301305
"cache",
302306
os.path.join("scratch", "discover", "discover.egg-info"),
307+
os.path.join("scratch", "discover", "build"),
303308
],
304309
)
305310

@@ -314,7 +319,7 @@ def test_uninstall_console_scripts_uppercase_name(script: PipTestEnvironment) ->
314319
version="0.1",
315320
entry_points={
316321
"console_scripts": [
317-
"Test = distutils_install",
322+
"Test = distutils_install:Test",
318323
],
319324
},
320325
)

0 commit comments

Comments
 (0)