Skip to content

Why does pytestmark with usefixtures not work in conftest.py? #12677

Answered by RonnyPfannschmidt
jaraco asked this question in Q&A
Discussion options

You must be logged in to vote

The alternative would be to add the marker to the session, which is hacky in another way

The recommended Way to activate a fixture for everything is to have a autouse fixture depend on it

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jaraco
Comment options

jaraco Aug 1, 2024
Collaborator Author

@RonnyPfannschmidt
Comment options

Answer selected by jaraco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants