Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

Unit Testing with Python 3

Unit testing is a great way to foster quality and enhance collaboration with other developers. Learn to write unit tests in good style using popular frameworks like unittest and pytest.

Intermediate
2h 50m
(284)

Created by Emily Bache

Last Updated May 17, 2022

Course Thumbnail
  • Course

Unit Testing with Python 3

Unit testing is a great way to foster quality and enhance collaboration with other developers. Learn to write unit tests in good style using popular frameworks like unittest and pytest.

Intermediate
2h 50m
(284)

Created by Emily Bache

Last Updated May 17, 2022

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

Once you’ve learned the basics of the Python language and started building programs, you will soon realize a need for some automated tests to make sure everything you’ve built keeps on working as you (and other developers) extend and improve it. In this course, Unit Testing with Python, you will learn foundational knowledge in unit testing. First, you will discover how to write and run tests using the ‘unittest’ framework, and some theory about how to design good test cases. Next, you will explore other popular testing frameworks in Python - pytest and doctest. Finally, you will examine how to use test doubles effectively, and techniques for parameterized testing and measuring test coverage. When you’re finished with this course, you will have the skills and knowledge of writing unit tests needed to be confident adding tests for the code you write, and sharing those tests with other developers.

Unit Testing with Python 3
Intermediate
2h 50m
(284)
Table of contents

About the author
Emily Bache - Pluralsight course - Unit Testing with Python 3
Emily Bache
5 courses 4.6 author rating 802 ratings

Emily Bache is an independent consultant, YouTuber and technical coach. She has written two books and teaches courses both online and in-person. Emily founded the Samman Technical Coaching Society.

Get started with Pluralsight