Add package
property to request
#12852
Labels
topic: fixtures
anything involving fixtures directly or indirectly
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
What's the problem this feature will solve?
Fixtures can have function, class, and module specific behavior by inspecting
request
but not package specific behavior, even for package scoped fixtures.Describe the solution you'd like
Add a
package
property toFeatureRequest
, similar to the currentmodule
property, that returns the closest node of typePackage
.Alternative Solutions
Current solution would be to have separate fixtures in each package, rather than one fixture with package-specific behavior.
The text was updated successfully, but these errors were encountered: