Master a practical pytest workflow for building reliable Python applications, from writing tests to configuring CI pipelines.
This course gives Python developers a clear and repeatable way to catch defects early, refactor with confidence, and maintain dependable applications. You'll learn how to use pytest to write tests that are easy to read, maintain, and run. The course covers everything from setting up your environment to advanced testing techniques like mocking, parameterization, and coverage reporting. Through hands-on examples, you'll see how each feature of pytest fits into real development workflows. You'll develop a structured way to organize tests, handle exceptions, and make your testing process scalable and efficient. By the end, you'll have all the tools to build reliable test suites that improve code quality and support continuous integration pipelines. This course is for Python developers who understand basic functions, modules, command-line use, and software installation. It’s ideal for those moving from manual testing to automated processes, or looking to adopt modern pytest practices for maintainable applications and CI workflows. No prior testing experience is required. Start with the basics of pytest and a working development setup. Follow along with focused examples that build from test structure to fixtures, markers, mocking, and coverage. Apply each technique to real Python testing workflows designed for maintainable projects. This course is based on Python Testing with pytest - Write Reliable and Maintainable Code, by Dave Hollingworth. Copyright © 2026 Dave Hollingworth All rights reserved. No part of this course may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Packt is one of the world's most prolific publishers of cutting-edge technical content. For over two decades we've made it our mission to curate and publish the knowledge of only the very best technical experts. We focus on real-world courses that help our customers get the job done, with coverage that extends across a wide range of established and cutting-edge technical topics. If you're an individual or an organisation that embraces learning by doing, Packt is the perfect fit for you.












