pytest: Simple, rapid and fun testing with Python

Tuesday, June 29, 2021 2:00 PM to 2:45 PM · 45 min. (Africa/Abidjan)
Quality & TestingBest practices


The pytest tool presents a rapid and simple way to write tests for your code. Not only is it a much more powerful replacement for Python's built-in "unittest" test framework, it's also very suitable as a base for custom test systems: It's used to test IoT-fridges, washing machines, car components or even audio codecs.

This talk gives an introduction to some of pytest's distinguishing features, such as: 

  • Automatic test discovery, no-boilerplate test code 
  • Useful information when a test fails
  • Marking and skipping tests
  • Data-driven tests via parametrization
  • Modular setup/teardown via fixtures
  • Useful built-in fixtures
  • Customizability via many config options and hundreds of plugins

Log in