Simple play icon Course
Skills

Testing in Python 3

by Emily Bache

This course will teach you to write and use unit tests in Python using popular tools and frameworks like unittest and pytest.

What you'll learn

Developers want to be sure the code they write is good quality and does the right thing. In this course, Testing in Python 3, you’ll learn to write unit tests in popular frameworks like unittest and pytest. First, you’ll explore the basic ideas and vocabulary of unit testing with the built-in package unittest and the popular tool pytest. Next, you’ll discover how to use test doubles to isolate your units. Finally, you’ll learn how to use more advanced testing techniques like approval testing and parameterized tests. When you’re finished with this course, you’ll have the skills and knowledge of writing the automated tests needed to ensure your code does what you think it does and has a reliable suite of regression tests to support future development.

Table of contents

Course Overview
1min

About the author

Emily Bache is an independent consultant and technical coach specializing in automated testing and agile methods. Emily works daily with development teams helping them to improve their automated tests and raise code quality. Emily is the author of "Technical Coaching with the Samman method" and "The Coding Dojo Handbook: a practical guide to creating a space where good programmers can become great programmers". Emily spent many years working at AstraZeneca, a multinational pharmaceuticals co... more

Ready to upskill? Get started