Is it default behaviour to load conftest.py
and set up fixtures when calling --help
?
#12718
-
I have some slow to setup fixtures that live in Is it expected behaviour to load in conftest when help is invoked? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 |
Beta Was this translation helpful? Give feedback.
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