Flask-Unit-Tests Flask Unit tests using python unittest Command for coverage pip install coverage To run the test file coverage run test_app.py -v To see coverage report coverage report -m References for mocking database https://docs.python.org/3/library/unittest.mock-examples.html