- Update to 1.11.0:

* The object returned by mocker.spy now also tracks the return
    value of the spied method/function.
- Drop merged patch mock3.patch and fix_tests.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=16
This commit is contained in:
Tomáš Chvátal
2019-09-30 12:24:55 +00:00
committed by Git OBS Bridge
parent 994534d7c5
commit 24f04b847b
6 changed files with 12 additions and 99 deletions

View File

@@ -20,15 +20,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-pytest-mock
Version: 1.10.4
Version: 1.11.0
Release: 0
Summary: Thin-wrapper around the mock package for easier use with pytest
License: MIT
Group: Development/Languages/Python
URL: https://github.com/pytest-dev/pytest-mock
Source: https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-%{version}.tar.gz
Patch0: mock3.patch
Patch1: fix_tests.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 36}
BuildRequires: %{python_module setuptools_scm}
@@ -52,7 +50,6 @@ of a test
%prep
%setup -q -n pytest-mock-%{version}
%autopatch -p1
%build
%python_build