Talk Python To Me cover image

#407: pytest tips and tricks for better testing

Talk Python To Me

00:00

PyTest - The Difference Between Error and Failure

There's lots of reasons to throw that in the fixture. Maybe you need a receiver, not a transmitter for some particular reason somewhere. Another thing is it's okay to not reuse fixtures and they can be in the same file. If the assert happens in the fixture, it doesn't report the test as a failure or reports as an error. So fixture asserts or errors.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app