Run autouse fixture at the end of fixtures declaration #8572
Unanswered
victormaricato
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I don't understand what you mean. Do you mean the other way around, i.e. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I have the following fixtures:
How can I make
commit_changes_to_db
run everytime thatdoes_something_to_db
runs?With the constraint that I cannot pass
does_something_to_db
as an argument tocommit_changes_to_db
(declare dependency). This constraint is due to a lot of fixtures requiringcommit_changes_to_db
at the end. Therefore, the argument list would be unnecessarily (because the fixtures are not used inside it) enormous.Beta Was this translation helpful? Give feedback.
All reactions