@uduqy @uqmav Sorry, I still do not find your tests? Check:
https://docs.python.org/3/library/unittest.html
https://flask.palletsprojects.com/en/1.1.x/testing/