The official Flask tutorial uses Pytest. Why did you choose Unittest? https://flask.palletsprojects.com/en/1.1.x/testing/