from app import app as test_app from pytest import fixture from secrets import token_bytes @fixture def app(): test_app.config["TESTING"] = True test_app.config["WTF_CSRF_ENABLED"] = False return test_app