Skip to content

Add marks field to apply pytest markers to test cases#199

Merged
sobolevn merged 2 commits into
typeddjango:masterfrom
federicobond:add-marks-support
Jul 10, 2026
Merged

Add marks field to apply pytest markers to test cases#199
sobolevn merged 2 commits into
typeddjango:masterfrom
federicobond:add-marks-support

Conversation

@federicobond

Copy link
Copy Markdown
Contributor

Test cases can now declare a marks list. This enables selecting groups of related cases with pytest -m <marker>.

Fixes #32

Test cases can now declare a `marks` list. This enables selecting
groups of related cases with `pytest -m <marker>`, applied to every
parametrized variant of a case.
@federicobond

federicobond commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

CI failures appear unrelated. Investigating...

Update: test job pulls the latest version of mypy/typeshed which moved some lines whose numbers are hard-coded in our tests.

@sobolevn sobolevn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sobolevn

Copy link
Copy Markdown
Member

If you want to update mypy - it would be an awesome feature :)

@sobolevn
sobolevn merged commit 6a68b64 into typeddjango:master Jul 10, 2026
19 checks passed
@federicobond

Copy link
Copy Markdown
Contributor Author

Do you mean fixing this? #198

@sobolevn

Copy link
Copy Markdown
Member

yes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add mark support

2 participants