stouputils.all_doctests.utils module#

This module is used to run all the doctests for all the modules in a given directory.

  • launch_tests() - Main function to launch tests for all modules in the given directory.

  • test_module_with_progress() - Test a module with testmod and measure the time taken with progress printing.

stouputils all_doctests examples
test_module_with_progress(
module: ModuleType,
separator: str,
) TestResults[source]#

Test a module with testmod and measure the time taken with progress printing.

Parameters:
  • module (ModuleType) – Module to test

  • separator (str) – Separator string for alignment in output

Returns:

The results of the tests

Return type:

TestResults