From c1fdc5c40acd527e9912f4ed11fd338ef9c14ec261dfc9cad94959781b2da44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 6 Jan 2020 13:13:41 +0000 Subject: [PATCH] - 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/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=23 --- pytest-mock-1.12.1.tar.gz | 3 --- pytest-mock-2.0.0.tar.gz | 3 +++ python-pytest-mock.changes | 11 +++++++++++ python-pytest-mock.spec | 4 ++-- 4 files changed, 16 insertions(+), 5 deletions(-) delete mode 100644 pytest-mock-1.12.1.tar.gz create mode 100644 pytest-mock-2.0.0.tar.gz diff --git a/pytest-mock-1.12.1.tar.gz b/pytest-mock-1.12.1.tar.gz deleted file mode 100644 index 23f824c..0000000 --- a/pytest-mock-1.12.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96a0cebc66e09930be2a15b03333d90b59584d3fb011924f81c14b50ee0afbba -size 23236 diff --git a/pytest-mock-2.0.0.tar.gz b/pytest-mock-2.0.0.tar.gz new file mode 100644 index 0000000..b615fed --- /dev/null +++ b/pytest-mock-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b35eb281e93aafed138db25c8772b95d3756108b601947f89af503f8c629413f +size 24665 diff --git a/python-pytest-mock.changes b/python-pytest-mock.changes index a884fdb..9301b5b 100644 --- a/python-pytest-mock.changes +++ b/python-pytest-mock.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Jan 6 13:11:42 UTC 2020 - Tomáš Chvátal + +- 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 diff --git a/python-pytest-mock.spec b/python-pytest-mock.spec index 1a2a426..c1e5da5 100644 --- a/python-pytest-mock.spec +++ b/python-pytest-mock.spec @@ -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