From 2dfc20b6c7875421c5e168e5052119e27ae17dd7 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Moreno Date: Tue, 3 Jan 2023 14:04:04 +0100 Subject: [PATCH] Make it work with Flask >= 2.2.0 After this commit the order of parameters for templating._render has changed: https://github.com/pallets/flask/commit/82c2e0366ce6b74a3786a64631ce58b85b3a7d4e This patch uses the new order. --- flask_testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_testing/utils.py b/flask_testing/utils.py index a28a823..eac9c01 100644 --- a/flask_testing/utils.py +++ b/flask_testing/utils.py @@ -88,7 +88,7 @@ class TestResponse(response_class, JsonResponseMixin): return TestResponse -def _empty_render(template, context, app): +def _empty_render(app, template, context): """ Used to monkey patch the render_template flask method when the render_templates property is set to False in the TestCase