Test Your Python Apps

Learning Path ⋅ Skills: Testing Python Code, PyTest, Mocking

Python Testing

Learn how to effectively test your Python code using modern tools and current best-practices.

Additional Resources

Test Your Python Apps

Learning Path ⋅ 6 Resources

Getting Started With Testing in Python

Tutorial

Getting Started With Testing in Python

In this in-depth tutorial, you’ll see how to create Python unit tests, execute them, and find the bugs before your users do.

(⭐⭐ Intermediate)
Getting Started With Testing in Python

Course

Test-Driven Development With PyTest

In this hands-on course, you’ll see how to create Python unit tests, execute them, and find the bugs before your users do.

(⭐⭐ Intermediate)
Testing Python Command-Line Apps

Tutorial

4 Techniques for Testing Python Command-Line (CLI) Apps

In this article, you'll learn 4 essential testing techniques for Python command-line applications: "lo-fi" print debugging, using a visual debugger, unit testing with pytest and mocks, and integration testing.

(⭐⭐ Intermediate)
Continuous Integration with Python: An Introduction

Course

Continuous Integration With Python

Learn the core concepts behind Continuous Integration (CI) and why they are essential for modern software engineering teams. Find out how to how set up Continuous Integration for your Python project.

(⭐⭐⭐ Advanced)
Understanding the Python Mock Object Library

Tutorial

Understanding the Python Mock Object Library

Learn how to use the Python mock object library, unittest.mock, to create and use mock objects to improve your tests.

(⭐⭐⭐ Advanced)
Python Debugging With Pdb (Guide)

Tutorial

Python Debugging With Pdb

In this hands-on tutorial, you'll learn the basics of using pdb, Python's interactive source code debugger. Pdb is a great tool for tracking down hard-to-find bugs and allows you to fix faulty code more quickly.

(⭐⭐⭐ Advanced)

Got feedback on this learning path?

« Browse All Learning Paths