Skip to content

Is it default behaviour to load conftest.py and set up fixtures when calling --help? #12718

Answered by RonnyPfannschmidt
daara-s asked this question in Q&A
Discussion options

You must be logged in to vote

if your fixtures set up when a conftest is loaded, then its not a fixture, its a cursed import time global and you should rethink your choices

conftest loading is expected as conftests can add cli args

fixtures are not set up until after collecting all tests

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@daara-s
Comment options

@RonnyPfannschmidt
Comment options

Answer selected by daara-s
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