From 9e4927ee0b71cecce99ee374519e080c6a01a6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 22 May 2023 00:03:13 +0800 Subject: [PATCH] Replaced the get_errors_view with the get_messages_view in the create_test_app function in testlib.py. --- tests/testlib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testlib.py b/tests/testlib.py index 883cd2b..6928d4f 100644 --- a/tests/testlib.py +++ b/tests/testlib.py @@ -71,9 +71,9 @@ def create_test_app() -> Flask: """The test view to return the CSRF token.""" return render_template_string("{{csrf_token()}}") - @app.get("/.errors") - def get_errors_view() -> str: - """The test view to return the CSRF token.""" + @app.get("/.messages") + def get_messages_view() -> str: + """The test view to return the flashed messages.""" return render_template_string("{{get_flashed_messages()|tojson}}") return app