Home >>> Courses >>> Special Topics >>> Testing

What customers say ...


Very nice course, got many useful suggestions.

Dr.-Ing. Ralf Wieland, Institut für Landschaftssystemanalyse, Leibniz-Zentrum für Agrarlandschaftsforschung e.V. about the German version of the course "Python for Scientists and Engineers" more...


I really liked the course since it offered a lot of information in a structured way. I especially found it helpful to see the different techniques "in action".

Alexander Bittner, gocept GmbH & Co. KG about the course "Python for Programmers" more...


We had a wide range of Python experience in our group and each person gained something valuable to take away....

Dr. Ryan Woodard, Chair of Entrepreneurial Risks, ETH ETH Zurich, Switzerland more...


Good course. Very fast progress without any prior Python knowledge.

Daniel Fuchs, GIGATRONIK Ingolstadt GmbH, about the German version of the course "Python for Programmers" more...


Highly recommended. Many aha-experiences and took home many positive inspiratons.

Helmut Dittrich, CEO DiFis-Engineering UG, arrow-fix.com, about the German introduction to Django "Django für Fortgeschrittene" more...


Professional Testing with pytest and tox


Target Audience

People with a Python programming background, interested in best practices of testing Python libraries and applications.

Motivation

Testing is essential for code quality. Tests need to be automated and regularly run to benefit from them. Frameworks such as pytest are based on many years of exercise and help you apply best practices to your tests.

Testing and releasing your code for many different Python versions and implementations can be hard. The new library tox is an effect tool to integrate testing and deployment. It works with and connects to established tools including those for Continuous Integration.

Applying the Python philosophy that simple things should be simple and complex task should be possible, pytest and tox make it easy to get started but at the same time provide powerful features for professional software development.

Course Content

In 30 steps we introduce terms and tools for testing in Python. Each step consists of an input, discussion and self-practice phase. The main topics of the course are:

  • Testing terms: functional, unit, integration, acceptance
  • Test driven development, "after it work" and legacy-code testing
  • pytest basic usage: command line options, test discovery, capturing stdout, assert, expecting exceptions, interactive debugger, simple fixtures
  • Integrating nose, twisted, django and unittest/2 style tests
  • Load balancing across multiple CPUs or machines
  • Configuring and using test coverage analysis
  • Special test outcomes: skip, xfail and when to use them
  • Using fixture functions for managing test state
  • Using fixture functions for controlling external processes
  • When and how to use mocking to avoid expensive setups
  • Using tox to run tests against installed libraries and applications
  • Using tox to build and test sphinx documentation
  • Using tox to integrate with Jenkins CI or travis-ci.org

Each bullet point will be covered with two to three short units with exercises.

Course Style

This is a hands-on course with lots of student activities. The presentation parts are usually short and include real-life examples. Students will create their own tests from the very beginning. Exercises are an important part of the training. Students are encouraged to bring their own problems to be discussed during the course.

Course Duration

3 days

Exercises

The participants can follow all steps directly on their computers. There are exercises at the end of each unit providing ample opportunity to apply the freshly learned knowledge.

Course Material

Every participant receives comprehensive printed materials that cover the whole course content as wells a CD with all source codes and used software.

The Trainer

Holger Krekel is the author of pytest and tox. He is a very experienced Python programmer and one of the founders of the famous pypy project. He is a creator or a contributor of many, often widely used, Open Source libraries. Over the last few years, he's has been working intensively in the fields of testing and test-driven development. Holger is currently living in Freiburg, Germany.

Follow @pyacademy

The Python Academy is sponsor of PyCon US 2013.

spacer

The Python Academy is sponsor of EuroSciPy 2013.

spacer

The Python Academy is sponsor of PyConDE 2012.

spacer

The Python Academy is sponsor of PyConPL 2012.

spacer

News


The next open cousers
details ...


Python Academy sponsors PyCon US conference 2013
details ...


Next Meeting of Leipzig Python User Group, March 12, 2013
details ...


Python für Programmierer (German), April 15 - 17, 2013
details ...


Python für Wissenschaftler und Ingenieure (German), April 18 - 20, 2013
details ...


Einstieg in Django (German), June 3 - 5, 2013
details ...


Django für Fortgeschrittene (German), June 6 - 8, 2013
details ...


Python for Scientists and Engineers, June 10 - 12, 2013
">details ...


Professional Testing with pytest and tox, June 24 - 26, 2013
">details ...


Introduction to Django, November 4 - 6, 2013
">details ...


Advanced Django, November 7 - 9, 2013
details ...


Python Academy founder receives PSF Community Service Award
details ...



spacer

spacer

spacer


gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.