Skip to content

Commit 849648b

Browse files
authored
Fix pytest --help string formatting issue (#13)
* escape formatting * add test * bump
1 parent ec8f0f1 commit 849648b

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pytest-cdist"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
description = "A pytest plugin to split your test suite into multiple parts"
55
authors = [
66
{ name = "Janek Nouvertné", email = "provinzkraut@posteo.de" },

pytest_cdist/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def pytest_addoption(parser: pytest.Parser) -> None:
254254
action="store",
255255
default=None,
256256
help="make a group steal a percentage of items from other groups. '1:30' would "
257-
"make group 1 steal 30% of items from all other groups",
257+
"make group 1 steal 30%% of items from all other groups",
258258
)
259259

260260
parser.addini("cdist-justify-items", help="justify items strategy", default="none")

tests/test_plugin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,3 +382,8 @@ def test_three():
382382
"--cdist-group=2/2", "--randomly-dont-reorganize"
383383
)
384384
result.assert_outcomes(passed=0, failed=1, deselected=2)
385+
386+
387+
# check for https://github.com/provinzkraut/pytest-cdist/issues/12
388+
def test_help(pytester: pytest.Pytester) -> None:
389+
pytester.runpytest("--help")

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)