Automated Testing Without the Pain

Speaker Jeremy Thurgood Track Other Type Regular talk (45 minutes) Abstract Automated tests are an important part of any software project, but they're often hard to work with. Good test code should be written with its own set of priorities and is sufficiently different from non-test code that many standard programming practices are unsuitable. I have spent many years writing (and reading) tests of varying quality and have learned quite a lot from the experience. I hope to share some of that experience and help to remove some of the pain usually associated with writing and maintaining tests. This talk will cover some of the practical aspects of writing good tests for real code, including: Properties of a good test case Taking advantage of pytest fixtures Different kinds of test doubles Reusable test helpers Post-deployment testing and QA automation ========================== Sponsors of PyCon Africa 2025 ========================== Platinum sponsor: Valkey: https://valkey.io/ Regional Diamond: Thinkst Canary: https://thinkst.com/ Amazon Web Services (AWS): https://aws.amazon.com/developer/ Gold Sponsors: Apify: https://apify.com/ Canonical: https://www.canonical.com/ Regional Gold: NICIS: https://www.nicis.ac.za/ Silver Sponsor: Google: https://google.com/ Regional Silver: Cyber Mint: https://www.cyber-mint.com/ Bronze Sponsor: Caktus Group: https://www.caktusgroup.com/ Regional Bronze: Prelude.Tech: https://prelude.tech/ Afrolabs: https://afrolabs.co.za/ CoderLevelUp: https://coderlevelup.org/ Contributing Sponsors: Lincoln Loop: https://lincolnloop.com/ Django Software Foundation: https://www.djangoproject.com/foundat... DEFNA: https://www.defna.org/ Black Python Devs: https://blackpythondevs.com/ Naughty Bean Coffee: https://www.naughtybean.coffee/ Zyelabs: https://zyelabs.net/ Asuer: https://asuer.co.za/ Wrend Holdings: https://wrendholdings.com/