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 1 reply
-
looks like a "bug" as we never explicitly supported dropping dynamicfixtures into a object instances |
Beta Was this translation helpful? Give feedback.
1 reply
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