Python Test

208: Tests with no assert statements

10.30.2023 - By Brian OkkenPlay

Download our free app to listen on your phone

Download on the App StoreGet it on Google Play

Why on earth would you want to write a test with no assert statements?

After all, aren't assert statements how you decide wether a test passes or fails? In this episode, we walk through a handful of useful examples of test code without asserts.

We also talk about how these types of tests are a great way to dip your toe into testing.

Sponsored by PyCharm ProUse code PYTEST for 20% off PyCharm Professional at jetbrains.com/pycharmFirst 10 to sign up this month get a free month of AI AssistantSee how easy it is to run pytest from PyCharm at pythontest.com/pycharmThe Complete pytest CourseFor the fastest way to learn pytest, go to courses.pythontest.comWhether your new to testing or pytest, or just want to maximize your efficiency and effectiveness when testing.

More episodes from Python Test