- Update to 1.0.2:

* fix(urllib3): interceptor is never really disabled (#68)
  * Closes #75 Re consider @fluent decorator (#76)
  * fix(#69): use match keyword in pytest.raises
  * fix(History): invalid rst syntax
  * fix(aiohttp): compatible with non aiohttp projects (#67)
  * feat(History): add release changes 
- Drop pytest5.patch, no longer required.
- Drop nose BuildRequires, and its suite, the remainder covers it.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pook?expand=0&rev=9
This commit is contained in:
Steve Kowalik 2021-09-20 02:56:38 +00:00 committed by Git OBS Bridge
parent a592232a4a
commit 6edbe72b12
5 changed files with 18 additions and 31 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e956e4fbe174eda6ad1d3b200818528e1829b1615d293e663c6e09af76390aae
size 40621

3
pook-1.0.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f28112db062d17db245b351c80f2bb5bf1e56ebfa93d3d75cc44f500c15c40eb
size 42069

View File

@ -1,22 +0,0 @@
From 2071da27701c82ce02b015e01e2aa6fd203e7bb5 Mon Sep 17 00:00:00 2001
From: Tom <tomas@aparicio.me>
Date: Tue, 5 May 2020 14:22:30 +0200
Subject: [PATCH] fix(#69): use match keyword in pytest.raises
---
tests/unit/matchers/base_test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/unit/matchers/base_test.py b/tests/unit/matchers/base_test.py
index 175bd67..b01aa23 100644
--- a/tests/unit/matchers/base_test.py
+++ b/tests/unit/matchers/base_test.py
@@ -33,7 +33,7 @@ def test_base_matcher_exceptions():
assert _BaseMatcher('foo').match(None) is None
with pytest.raises(ValueError,
- message='expectation argument cannot be empty'):
+ match='expectation argument cannot be empty'):
_BaseMatcher(None)

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Sep 20 02:54:50 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.0.2:
* fix(urllib3): interceptor is never really disabled (#68)
* Closes #75 Re consider @fluent decorator (#76)
* fix(#69): use match keyword in pytest.raises
* fix(History): invalid rst syntax
* fix(aiohttp): compatible with non aiohttp projects (#67)
* feat(History): add release changes
- Drop pytest5.patch, no longer required.
- Drop nose BuildRequires, and its suite, the remainder covers it.
-------------------------------------------------------------------
Wed May 6 06:59:43 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pook
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,13 +20,12 @@
# requires python-aiohttp
%define skip_python2 1
Name: python-pook
Version: 1.0.0
Version: 1.0.2
Release: 0
Summary: HTTP traffic mocking and expectations
License: MIT
URL: https://github.com/h2non/pook
Source: https://files.pythonhosted.org/packages/source/p/pook/pook-%{version}.tar.gz
Patch0: pytest5.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -42,7 +41,6 @@ BuildRequires: %{python_module furl >= 0.5.6}
BuildRequires: %{python_module jsonschema >= 2.5.1}
BuildRequires: %{python_module mocket >= 1.6.0}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose >= 1.3.7}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.20.0}
BuildRequires: %{python_module urllib3 >= 1.19.1}
@ -55,7 +53,6 @@ HTTP traffic mocking and expectations.
%prep
%setup -q -n pook-%{version}
%patch0 -p1
rm -f setup.cfg pytest.ini tox.ini
# Assist unittest on Python 2
@ -75,7 +72,6 @@ touch tests/__init__.py
export PYTHONPATH=%{buildroot}%{$python_sitelib}
$python -m pytest -v tests/unit
$python -m pytest -v tests/integration/engines/pytest_suite.py
$python -m nose tests/integration/engines/nose_suite.py
export PYTHONPATH=%{buildroot}%{$python_sitelib}:.
$python -m unittest tests.integration.engines.unittest_suite
}