A stack exchange answer (https://stackoverflow.com/a/54898684) suggests marking the type of each test. Choose a set of marks to create and use them (e.g. unit, integration, and end-to-end).
Then use pytest -m "unit and not integtest"-like syntax for running particular types of tests; enhance the test script to allow for specifying a particular type of test.
Finally, setup some sort of system for automatically running tests locally; at a minimum, use git hooks to run all tests when merging into major branches.
A stack exchange answer (https://stackoverflow.com/a/54898684) suggests marking the type of each test. Choose a set of marks to create and use them (e.g. unit, integration, and end-to-end).
Then use
pytest -m "unit and not integtest"
-like syntax for running particular types of tests; enhance the test script to allow for specifying a particular type of test.Finally, setup some sort of system for automatically running tests locally; at a minimum, use git hooks to run all tests when merging into major branches.