Skip to content

Commit 50e7d73

Browse files
committed
feat: add --require-unique-paramset-ids option skips pytest internal logic of id generation
1 parent 6720ce2 commit 50e7d73

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

changelog/13737.feature.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Added the ``--require-unique-paramset-ids`` flag to pytest.
22

3-
When passed, this flag causes pytest to raise an exception upon detection of non-unique parameter set IDs, rather than attempting to generate them automatically.
3+
When passed, this flag causes pytest to raise an exception upon detection of non-unique parameter set IDs,
4+
rather than attempting to generate them automatically.

doc/en/example/.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ignore = ["RUF059"]
1+
lint.ignore = ["RUF059"]

src/_pytest/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def pytest_addoption(parser: Parser) -> None:
9494
"--require-unique-paramset-ids",
9595
action="store_true",
9696
default=False,
97-
help="Causes pytest to raise an exception upon detection of non-unique parameter set IDs, rather than attempting to generate them automatically.",
97+
help="Causes pytest to raise an exception upon detection of non-unique parameter set IDs,"
98+
"rather than attempting to generate them automatically.",
9899
)
99100

100101
group = parser.getgroup("pytest-warnings")

0 commit comments

Comments
 (0)