From dd3e42c53609f779b861e40da5a4aad7b01b9c9c3e51dabc027caa9f36c64292 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 26 Apr 2018 11:34:36 +0000 Subject: [PATCH] Accepting request 599637 from devel:languages:python OBS-URL: https://build.opensuse.org/request/show/599637 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=6 --- pytest-mock-1.7.1.tar.gz | 3 --- pytest-mock-1.9.0.tar.gz | 3 +++ python-pytest-mock.changes | 11 +++++++++++ python-pytest-mock.spec | 11 +++++------ 4 files changed, 19 insertions(+), 9 deletions(-) delete mode 100644 pytest-mock-1.7.1.tar.gz create mode 100644 pytest-mock-1.9.0.tar.gz diff --git a/pytest-mock-1.7.1.tar.gz b/pytest-mock-1.7.1.tar.gz deleted file mode 100644 index fc25d6a..0000000 --- a/pytest-mock-1.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b879dff61e31fcd4727c227c182f15f222a155293cc64ed5a02d55e0020cf949 -size 20176 diff --git a/pytest-mock-1.9.0.tar.gz b/pytest-mock-1.9.0.tar.gz new file mode 100644 index 0000000..a9f6265 --- /dev/null +++ b/pytest-mock-1.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:173fd47c872d105368aeb22dca1415db9f269c0ee1c3832c3aebadd3e80f6133 +size 20707 diff --git a/python-pytest-mock.changes b/python-pytest-mock.changes index fe11df4..0d2af79 100644 --- a/python-pytest-mock.changes +++ b/python-pytest-mock.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Apr 21 16:39:10 UTC 2018 - arun@gmx.de + +- update to version 1.9.0: + * Add support for the recently added assert_called_once method in + Python 3.6 and mock-2.0. Thanks @rouge8 for the PR (#113). + +- changes from version 1.8.0: + * Add aliases for NonCallableMock and create_autospec to + mocker. Thanks @mlhamel for the PR (#111). + ------------------------------------------------------------------- Sat Mar 3 10:13:26 UTC 2018 - mimi.vx@gmail.com diff --git a/python-pytest-mock.spec b/python-pytest-mock.spec index 3611463..cb0ca47 100644 --- a/python-pytest-mock.spec +++ b/python-pytest-mock.spec @@ -18,16 +18,15 @@ %define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define modname pytest-mock %bcond_without python2 -Name: python-%{modname} -Version: 1.7.1 +Name: python-pytest-mock +Version: 1.9.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/%{modname} -Source: https://files.pythonhosted.org/packages/source/p/pytest-mock/%{modname}-%{version}.tar.gz +URL: https://github.com/pytest-dev/pytest-mock +Source: https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-%{version}.tar.gz BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools >= 36} BuildRequires: %{python_module setuptools_scm} @@ -52,7 +51,7 @@ but with the benefit of not having to worry about undoing patches at the end of a test %prep -%setup -q -n %{modname}-%{version} +%setup -q -n pytest-mock-%{version} %build %python_build