Skip to content

Commit ee5865f

Browse files
cliffhallclaude
andcommitted
test: cases for pytest marks applied without a decorator
The table cases the previous commit's pattern change was meant to ship with. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: cliffhall <[email protected]>
1 parent 93c5d40 commit ee5865f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎scripts/verify-no-test-retries.test.mjs‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,16 @@ const cases = [
103103
["src/b/pyproject.toml", "retries = 2", ["pytest-reruns-flag"]],
104104
["src/b/pyproject.toml", "max_retries = 2", []],
105105
["src/b/tests/test_x.py", "@pytest.mark.retries(2)", ["pytest-flaky-marker"]],
106+
[
107+
"src/b/tests/test_x.py",
108+
"pytestmark = pytest.mark.flaky(reruns=2)",
109+
["pytest-flaky-marker"],
110+
],
111+
[
112+
"src/b/tests/test_x.py",
113+
"pytest.param(1, marks=pytest.mark.retries(2)),",
114+
["pytest-flaky-marker"],
115+
],
106116
[
107117
".github/workflows/python.yml",
108118
step(" run: uv run pytest --retries 2"),

0 commit comments

Comments
 (0)