ATTENTION: We have to do a short maintenance with downtime on Tue 18 Oct 2021, 9:00 - 10:00 CEST. Please finish your work in time to prevent data loss.

Test Automation with Python



Benjamin Wolff (Deutsches Zentrum für Luft- und Raumfahrt)


You learn the basics of efficient testing in Python. In addition, we show you how to apply them practically in your Python project.


This workshop will cover the the following topics:

  • Introduction to test automation
  • Pytest basics
  • Test isolation using mock
  • Code coverage analysis using
  • Run tests via a GitLab CI build pipeline

You learn to apply the presented strategies on the basis of a consistent code example.


  • Good Python programming skills are required.
  • Participants require a computer equipped with a modern Web browser and a recent Python environment. We will provide more detailed setup information before the workshop.

We are looking forward to seeing you!


Please register using the register button below. You do not need to set up an Indico account to register. The registration opens about 2-3 weeks before the workshop.

The registration is preliminary to allow a fair distribution of the workshop seats across the Helmholtz centers. You will be notified regarding your registration status about one week before the workshop.

Organized by

Tobias Schlauch

  • Tuesday, October 4
    • Welcome
    • Introduction: Test automation
    • Introduction: pytest basics
    • Example project: Introduction and initial characterization tests
    • Example project: Test isolation with test doubles
    • Wrap-up day 1
  • Wednesday, October 5
    • Welcome & Recap
    • Example project: Test isolation with test doubles (cont.)
    • Example project: Analyzing the code coverage
    • Example project: Improving the test suite and the code structure
    • Example project: Build automation and CI/CD with GitLab
    • Q&A / Wrap Up / Feedback