From 56dca015d403da8b13106fd26b1775aae7f5d0581532f5e08f5880b25ac7d1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 5 Apr 2019 12:42:08 +0000 Subject: [PATCH] - Update to 1.1.1: * Added forget_invocations function. Thanks to @maximkulkin * Fix: The context manager (with) has now a proper implementation * Fix: Calling patch with two arguments can now be used with with * Fix: Do not treat the placeholder arguments (Ellipsis, args, kwargs) as special on call time anymore. (T.i. they only have a meaning when stubbing or verifying.) * Enhancement: Changed some truthy or equality tests to identity (is) tests. This reduces edge-cases where some user object defines __eq__ or __bool__. (Hello _numpy_!) - Run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=12 --- mockito-1.0.12.tar.gz | 3 --- mockito-1.1.1.tar.gz | 3 +++ python-mockito.changes | 11 +++++++++++ python-mockito.spec | 11 ++++++++--- 4 files changed, 22 insertions(+), 6 deletions(-) delete mode 100644 mockito-1.0.12.tar.gz create mode 100644 mockito-1.1.1.tar.gz diff --git a/mockito-1.0.12.tar.gz b/mockito-1.0.12.tar.gz deleted file mode 100644 index a93bd31..0000000 --- a/mockito-1.0.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ea264ebf1d3d0e8bef31f2d630dcd18fcc073dbc4a3b4050b80ac624f6e46788 -size 35406 diff --git a/mockito-1.1.1.tar.gz b/mockito-1.1.1.tar.gz new file mode 100644 index 0000000..03e6886 --- /dev/null +++ b/mockito-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:142f5e8865a422ad2d67b9c67a382e3296e8f1633dbccd0e322180fba7d5303d +size 36959 diff --git a/python-mockito.changes b/python-mockito.changes index 55cc43d..ddb9878 100644 --- a/python-mockito.changes +++ b/python-mockito.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Apr 5 12:38:51 UTC 2019 - Tomáš Chvátal + +- Update to 1.1.1: + * Added forget_invocations function. Thanks to @maximkulkin + * Fix: The context manager (with) has now a proper implementation + * Fix: Calling patch with two arguments can now be used with with + * Fix: Do not treat the placeholder arguments (Ellipsis, args, kwargs) as special on call time anymore. (T.i. they only have a meaning when stubbing or verifying.) + * Enhancement: Changed some truthy or equality tests to identity (is) tests. This reduces edge-cases where some user object defines __eq__ or __bool__. (Hello _numpy_!) +- Run tests + ------------------------------------------------------------------- Tue Dec 4 12:50:25 UTC 2018 - Matej Cepl diff --git a/python-mockito.spec b/python-mockito.spec index 8c9c50c..e90f5cf 100644 --- a/python-mockito.spec +++ b/python-mockito.spec @@ -1,7 +1,7 @@ # # spec file for package python-mockito # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-mockito -Version: 1.0.12 +Version: 1.1.1 Release: 0 Summary: Spying framework License: MIT Group: Development/Languages/Python -Url: http://mockito-python.readthedocs.io/en/latest/ +URL: https://github.com/kaste/mockito-python Source: https://files.pythonhosted.org/packages/source/m/mockito/mockito-%{version}.tar.gz +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -47,6 +49,9 @@ Mockito is a spying framework originally based on the Java library with the same %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %doc AUTHORS CHANGES.txt README.rst %license LICENSE