Skip to content

Commit 3c52109

Browse files
committed
Fix dependency-group name normalization
1 parent 3ad56f0 commit 3c52109

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/changelog/3539.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix dependency-group name normalization.

tests/tox_env/python/test_python_runner.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,14 @@ def test_dependency_groups_not_list(tox_project: ToxProjectCreator) -> None:
334334
""",
335335
"pyproject.toml": """
336336
[dependency-groups]
337-
test = 1
337+
teSt = 1
338338
""",
339339
},
340340
)
341341
result = project.run("r", "-e", "py")
342342

343343
result.assert_failed()
344-
assert "py: failed with dependency group 'test' is not a list\n" in result.out
344+
assert "py: failed with dependency group 'teSt' is not a list\n" in result.out
345345

346346

347347
def test_dependency_groups_bad_requirement(tox_project: ToxProjectCreator) -> None:
@@ -398,12 +398,12 @@ def test_dependency_groups_cyclic(tox_project: ToxProjectCreator) -> None:
398398
""",
399399
"pyproject.toml": """
400400
[dependency-groups]
401-
test = [ { include-group = "type" } ]
402-
type = [ { include-group = "test" } ]
401+
teSt = [ { include-group = "type" } ]
402+
tyPe = [ { include-group = "test" } ]
403403
""",
404404
},
405405
)
406406
result = project.run("r", "-e", "py")
407407

408408
result.assert_failed()
409-
assert "py: failed with Cyclic dependency group include: 'test' -> ('test', 'type')\n" in result.out
409+
assert "py: failed with Cyclic dependency group include: 'teSt' -> ('teSt', 'tyPe')\n" in result.out

0 commit comments

Comments
 (0)