- 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:
Steve Kowalik 2023-03-30 04:23:11 +00:00 committed by Git OBS Bridge
parent 68ccddc9e4
commit e1ece73915
3 changed files with 22 additions and 3 deletions

View File

@ -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>

View File

@ -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}

View 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")