News for hackers. Stuff that matters.
Re:Pytest Tips and Tricks by d0mine on Wednesday March 22, 2023 @02:10PM (#35264918)
Fixture names are globally unique, it makes it easy to find their definitions e.g., dumb-jump in Emacs works: one keystroke to go to the definition or if it is overridden then it shows available options.
Re:Pytest Tips and Tricks by nerdponx on Wednesday March 22, 2023 @05:16PM (#35267192)
My annoyance is that it's impossible to tell upfront which parameters are fixtures just by looking at the signature of a test function. I would've much preferred an explicit decorator.