All tests are located inside the folder tests. Tests for a module should be names like <MODULE_NAME>_test.py.


For often used functions and workflows during testing the functions and classes inside fastapi_serviceutils.utils.tests can be used.

To run the tests run:

make tests

A HTML coverage report is automatically created in the htmlcov directory.

See also

For additional information how to test fastapi-applications:

For information how to test async functions: