-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
topic: fixturesanything involving fixtures directly or indirectlyanything involving fixtures directly or indirectlytype: refactoringinternal improvements to the codeinternal improvements to the code
Description
Follow up from #3705 (comment)
We would like to cleanup the __being_called_by_pytest keyword hack that was used in #3705. @RonnyPfannschmidt's suggestion of unwrapping the fixture function just before the call works great, except that for staticmethods we don't have access to instance request at that point.
It seems like a deeper issue in the structural construction of the request: static test functions should still have self in request.instance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
topic: fixturesanything involving fixtures directly or indirectlyanything involving fixtures directly or indirectlytype: refactoringinternal improvements to the codeinternal improvements to the code