Integrating with doctest
Explore how to integrate Python's doctest module with unittest to automate testing. Understand test discovery, creating test suites, and running doctests as unittests to streamline your testing process.
We'll cover the following...
We'll cover the following...
The unittest module can be used with Python’s doctest module as well. If
we have created a lot of modules that have doctests in them, we will
usually want to be able to run them systematically. This is where
unittest comes in. The unittest module supports Test Discovery
starting in Python 3.2. Test Discovery basically allows unittest to look at the contents of a ...