Pytest 8.3.3 breaks fixture registration for class based plugins when fixtures are dynamically added to the instance only #12851
Unanswered
lovetheguitar
asked this question in
General
Replies: 1 comment 2 replies
-
looks like a "bug" as we never explicitly supported dropping dynamicfixtures into a object instances |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In c6a5290 the detection of fixtures was changed in a way that broke our dynamic fixture registration. Before fixtures were looked up on the instance, but now they will be looked up on the class of a plugin instance.
Relevant line.
Thus I'm wondering what the officially supported
plugin
s one may feed intopytest/src/_pytest/config/__init__.py
Line 489 in 7add2af
Reproduction:
test_demo.py
Beta Was this translation helpful? Give feedback.
All reactions