Skip to product information
1 of 1

Brian Okken

Python Testing with pytest: Simple, Rapid, Effective, and Scalable

Python Testing with pytest: Simple, Rapid, Effective, and Scalable

Regular price £25.52 GBP
Regular price £36.99 GBP Sale price £25.52 GBP
31% OFF Sold out
Tax included. Shipping calculated at checkout.

YOU SAVE £11.47

  • Condition: Brand new
  • UK Delivery times: Usually arrives within 2 - 3 working days
  • UK Shipping: Fee starts at £2.39. Subject to product weight & dimension
Trustpilot 4.5 stars rating  Excellent
We're rated excellent on Trustpilot.
  • More about Python Testing with pytest: Simple, Rapid, Effective, and Scalable


Pytest is a powerful testing framework for Python that simplifies the process of writing and maintaining tests. It offers features such as assert rewriting, parametrization, markers, plugins, parallel test execution, and clear test failure reporting. This book provides step-by-step instructions and sample code to help beginners get up to speed quickly on pytest, allowing them to write short, maintainable tests that elegantly express what they are testing.

Format: Paperback / softback
Length: 250 pages
Publication date: 04 March 2022
Publisher: Pragmatic Bookshelf


Pytest is a powerful testing framework for Python that simplifies the process of writing and maintaining tests. It offers a wide range of features, including simple assertions, fixtures, parametrization, markers, and plugins, that enable developers to write tests quickly and efficiently. In this fully revised edition, readers will explore pytest's superpowers and learn how to create simple tests and test suites against a small database application.

One of the key strengths of pytest is its fixture model, which allows developers to share test data and setup procedures across multiple layers of tests. This makes it easy to write small tests as well as scale up to complex functional testing. The framework also provides powerful features such as assert rewriting, parametrization, markers, plugins, parallel test execution, and clear test failure reporting, all without the need for boilerplate code.

The book is designed with simple step-by-step instructions and sample code to help readers get up to speed quickly on pytest. It covers topics such as writing short, maintainable tests, speeding up test times by distributing tests across multiple processors, using Python's built-in assert statements, moving setup code out of tests and into fixtures, testing error conditions and corner cases with expected exception testing, and using parameterized testing to run many test cases with minimal effort.

In addition to its core features, pytest can be extended with plugins, connected to continuous integration systems, and used in tandem with other tools such as tox, mock, coverage, and existing unittests. This versatility makes pytest a valuable tool for testing Python projects of all sizes.

Overall, pytest is an essential tool for any Python developer who wants to write efficient, maintainable, and scalable tests. Whether you are new to testing or have experience with other testing frameworks, this book will help you unlock the full potential of pytest and improve your testing skills.

Weight: 516g
Dimension: 189 x 235 x 18 (mm)
ISBN-13: 9781680508604

UK and International shipping information

UK Delivery and returns information:

  • Delivery within 2 - 3 days when ordering in the UK.
  • Shipping fee for UK customers from £2.39. Fully tracked shipping service available.
  • Returns policy: Return within 30 days of receipt for full refund.

International deliveries:

Shulph Ink now ships to Australia, Belgium, Canada, France, Germany, Ireland, Italy, India, Luxembourg Saudi Arabia, Singapore, Spain, Netherlands, New Zealand, United Arab Emirates, United States of America.

  • Delivery times: within 5 - 10 days for international orders.
  • Shipping fee: charges vary for overseas orders. Only tracked services are available for most international orders. Some countries have untracked shipping options.
  • Customs charges: If ordering to addresses outside the United Kingdom, you may or may not incur additional customs and duties fees during local delivery.
View full details