Accepting request 761149 from devel:languages:python:pytest

- Update to 2.0.0:
  * mocker.spy attributes for tracking returned values and raised
    exceptions of its spied functions are now called spy_return
    and spy_exception, instead of reusing the existing MagicMock
    attributes return_value and side_effect.
  * The deprecated mock alias to the mocker fixture has finally
    been removed.

OBS-URL: https://build.opensuse.org/request/show/761149
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=17
This commit is contained in:
Dominique Leuenberger 2020-01-16 17:13:39 +00:00 committed by Git OBS Bridge
commit dca62fa2d7
4 changed files with 16 additions and 5 deletions

View File

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

3
pytest-mock-2.0.0.tar.gz Normal file
View File

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

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Jan 6 13:11:42 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 2.0.0:
* mocker.spy attributes for tracking returned values and raised
exceptions of its spied functions are now called spy_return
and spy_exception, instead of reusing the existing MagicMock
attributes return_value and side_effect.
* The deprecated mock alias to the mocker fixture has finally
been removed.
-------------------------------------------------------------------
Wed Dec 4 12:04:01 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pytest-mock
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,7 +20,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-pytest-mock
Version: 1.12.1
Version: 2.0.0
Release: 0
Summary: Thin-wrapper around the mock package for easier use with pytest
License: MIT