Accepting request 1046524 from devel:languages:python:flask
- Add patch fix-utils.patch gh#jarus/flask-testing#157 In Flask 2.2.0 the order of parameters for templating._render is different, this patch updates the usage in this module to match the new order. OBS-URL: https://build.opensuse.org/request/show/1046524 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-Testing?expand=0&rev=6
This commit is contained in:
commit
99f7e93c5b
13
fix-utils.patch
Normal file
13
fix-utils.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: Flask-Testing-0.8.1/flask_testing/utils.py
|
||||||
|
===================================================================
|
||||||
|
--- Flask-Testing-0.8.1.orig/flask_testing/utils.py
|
||||||
|
+++ Flask-Testing-0.8.1/flask_testing/utils.py
|
||||||
|
@@ -88,7 +88,7 @@ def _make_test_response(response_class):
|
||||||
|
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
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 3 13:06:40 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Add patch fix-utils.patch gh#jarus/flask-testing#157
|
||||||
|
In Flask 2.2.0 the order of parameters for templating._render is different,
|
||||||
|
this patch updates the usage in this module to match the new order.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 12 05:52:11 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
Tue Jul 12 05:52:11 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Flask-Testing
|
# spec file for package python-Flask-Testing
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-Flask-Testing
|
Name: python-Flask-Testing
|
||||||
Version: 0.8.1
|
Version: 0.8.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -25,6 +24,8 @@ License: BSD-3-Clause
|
|||||||
URL: https://github.com/jarus/flask-testing
|
URL: https://github.com/jarus/flask-testing
|
||||||
Source: https://files.pythonhosted.org/packages/source/F/Flask-Testing/Flask-Testing-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/F/Flask-Testing/Flask-Testing-%{version}.tar.gz
|
||||||
Patch0: skip-broken-tests.patch
|
Patch0: skip-broken-tests.patch
|
||||||
|
# PATCH-FIX-OPENSUSE fix-utils.patch gh#jarus/flask-testing#157
|
||||||
|
Patch1: fix-utils.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Loading…
x
Reference in New Issue
Block a user