- Add patch relax-test-callback-response.patch:
* Relax timeout for test_callback_response (bsc#1209571) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=54
This commit is contained in:
parent
68ccddc9e4
commit
e1ece73915
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 30 04:21:14 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch relax-test-callback-response.patch:
|
||||
* Relax timeout for test_callback_response (bsc#1209571)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 27 16:52:32 UTC 2022 - Sarah Kriesch <sarah.kriesch@opensuse.org>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-httpretty
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -16,8 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-httpretty
|
||||
Version: 1.1.4
|
||||
Release: 0
|
||||
@ -34,6 +32,8 @@ Patch1: 453-fix-tests-pytest.patch
|
||||
Patch2: double-slash-paths.patch
|
||||
#PATCH-FIX-UPSTREAM 460-fix-tests-two-miliseconds
|
||||
Patch3: 460-miliseconds_tests.patch
|
||||
# PATCH-FIX-OPENSUSE Relax the time for one test case from 2ms to 3ms.
|
||||
Patch4: relax-test-callback-response.patch
|
||||
BuildRequires: %{python_module boto3}
|
||||
BuildRequires: %{python_module eventlet}
|
||||
BuildRequires: %{python_module fakeredis}
|
||||
|
13
relax-test-callback-response.patch
Normal file
13
relax-test-callback-response.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: httpretty-1.1.4/tests/functional/test_requests.py
|
||||
===================================================================
|
||||
--- httpretty-1.1.4.orig/tests/functional/test_requests.py
|
||||
+++ httpretty-1.1.4/tests/functional/test_requests.py
|
||||
@@ -456,7 +456,7 @@ def test_multipart():
|
||||
|
||||
|
||||
@httprettified
|
||||
-@within(two=miliseconds)
|
||||
+@within(three=miliseconds)
|
||||
def test_callback_response(now):
|
||||
("HTTPretty should call a callback function and set its return value as the body of the response"
|
||||
" requests")
|
Loading…
x
Reference in New Issue
Block a user