Does anyone else avoid fixtures due to the magic? #12382
techdragon
started this conversation in
Polls
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I frequently find myself just completely bypassing the entire fixture magic system due it being more trouble than its worth. I'll write helper methods or utility classes like I would in normal code everywhere else in a codebase, and load them in as the first lines of a test... for me pytest is just a nicer test runner... "Magic" dependency injection systems require having a whole second parallel mental model of what code is going to look like when finally run and I genuinely, actively, dislike them... (for me its not just pytest, I've never met a dependency injection system i liked)... am I alone in this? Who else uses pytest while avoiding anything to do with its dependency injection magic?
(This isn't the same as other similar polls, I'm specifically curious how statistically abnormal my pytest usage might be)
8 votes ·
Beta Was this translation helpful? Give feedback.
All reactions