
Hands-On Test Driven Development with Python
Test Driven Python Development with PyTest
Created by Richard Wells
Explore practical techniques for writing reliable Python code using unit testing and Test Driven Development. Learn how to use PyTest and unittest.mock to build robust test suites and improve your workflow. Gain confidence by applying these skills to real-world Python projects.
Packt | May 2018 | 138 min
What You Will Learn
You will start by setting up a Python development environment and gradually move on to writing and running unit tests with PyTest. Through hands-on coding exercises, you will use mocks to isolate code and practice TDD by building features step by step. Along the way, you will pick up best practices that help you write better tests and code.
Key Features
- Write effective unit tests with PyTest for cleaner, more reliable Python code
- Use unittest.mock to create test doubles and isolate code for accurate testing
- Apply TDD principles to develop features with fewer bugs and faster feedback
Target Audience
Ideal for Python developers with a basic understanding of the language who want to improve code quality and reliability. If you are looking to adopt TDD and unit testing in your daily workflow or want to deliver features with fewer bugs, you will find practical value here.





