Pytest and coverage Tool
Packages to install:
Pytest with Flask
You can create a test client to test your Flask app
Coverage Configuration File
the lines as they are in Python code
The purpose of test fixtures is to provide a fixed baseline upon which tests can reliably and repeatedly execute.
In short, mocking is creating objects that simulate the behaviour of real objects.