Skip to content

Commit 091164c

Browse files
dgarciabmwiedemann
authored andcommitted
Update python-Flask-Testing to version 0.8.1 / rev 6 via SR 1046524
https://build.opensuse.org/request/show/1046524 by user dgarcia + dimstar_suse - 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.
1 parent b7cbd94 commit 091164c

File tree

5 files changed

+34
-2
lines changed

5 files changed

+34
-2
lines changed
53 Bytes
Binary file not shown.

packages/p/python-Flask-Testing/.rev

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,15 @@
4040
* Skip a broken test class, and 2 tests.</comment>
4141
<requestid>988526</requestid>
4242
</revision>
43+
<revision rev="6" vrev="4">
44+
<srcmd5>1639d24b4fcf50522857d07bd59687a8</srcmd5>
45+
<version>0.8.1</version>
46+
<time>1672755702</time>
47+
<user>dimstar_suse</user>
48+
<comment>- Add patch fix-utils.patch gh#jarus/flask-testing#157
49+
In Flask 2.2.0 the order of parameters for templating._render is different,
50+
this patch updates the usage in this module to match the new order.
51+
</comment>
52+
<requestid>1046524</requestid>
53+
</revision>
4354
</revisionlist>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Index: Flask-Testing-0.8.1/flask_testing/utils.py
2+
===================================================================
3+
--- Flask-Testing-0.8.1.orig/flask_testing/utils.py
4+
+++ Flask-Testing-0.8.1/flask_testing/utils.py
5+
@@ -88,7 +88,7 @@ def _make_test_response(response_class):
6+
return TestResponse
7+
8+
9+
-def _empty_render(template, context, app):
10+
+def _empty_render(app, template, context):
11+
"""
12+
Used to monkey patch the render_template flask method when
13+
the render_templates property is set to False in the TestCase

packages/p/python-Flask-Testing/python-Flask-Testing.changes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
-------------------------------------------------------------------
2+
Tue Jan 3 13:06:40 UTC 2023 - Daniel Garcia <[email protected]>
3+
4+
- Add patch fix-utils.patch gh#jarus/flask-testing#157
5+
In Flask 2.2.0 the order of parameters for templating._render is different,
6+
this patch updates the usage in this module to match the new order.
7+
18
-------------------------------------------------------------------
29
Tue Jul 12 05:52:11 UTC 2022 - Steve Kowalik <[email protected]>
310

packages/p/python-Flask-Testing/python-Flask-Testing.spec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# spec file for package python-Flask-Testing
33
#
4-
# Copyright (c) 2022 SUSE LLC
4+
# Copyright (c) 2023 SUSE LLC
55
#
66
# All modifications and additions to the file contributed by third parties
77
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
1616
#
1717

1818

19-
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
2019
Name: python-Flask-Testing
2120
Version: 0.8.1
2221
Release: 0
@@ -25,6 +24,8 @@ License: BSD-3-Clause
2524
URL: https://github.com/jarus/flask-testing
2625
Source: https://files.pythonhosted.org/packages/source/F/Flask-Testing/Flask-Testing-%{version}.tar.gz
2726
Patch0: skip-broken-tests.patch
27+
# PATCH-FIX-OPENSUSE fix-utils.patch gh#jarus/flask-testing#157
28+
Patch1: fix-utils.patch
2829
BuildRequires: %{python_module setuptools}
2930
BuildRequires: fdupes
3031
BuildRequires: python-rpm-macros

0 commit comments

Comments
 (0)