O'Reilly logo

Python 3 Web Development Beginner's Guide by Michel Anders

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action choosing a test framework

When choosing a test framework, ask yourself the following questions:

  • What do I want to test? You cannot test everything and developing tests takes time.
  • How easy is it to write and maintain the tests? This question is just as relevant for developing tests as it is for developing code in general.
  • How much effort is needed to perform the tests? If it is easy to automate the tests, they can, for example, be run as part of the deployment as an extra check.

Just for Python alone there are quite a few testing frameworks available, but we will choose the unittest module distributed with Python. Note that although we choose to write only automated test for the Python parts of the applications, this doesn't mean ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required