Hello community,

here is the log from the commit of package python-pytest-mock for 
openSUSE:Leap:15.2 checked in at 2020-04-28 20:09:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pytest-mock (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-pytest-mock.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-mock"

Tue Apr 28 20:09:44 2020 rev:22 rq:795983 version:2.0.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-pytest-mock/python-pytest-mock.changes  
2020-01-15 15:52:18.243558722 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-pytest-mock.new.2738/python-pytest-mock.changes
        2020-04-28 20:09:46.524362126 +0200
@@ -1,0 +2,138 @@
+Fri Mar 27 07:52:35 UTC 2020 - Tomáš Chvátal <tchva...@suse.com>
+
+- Skip 2 more tests that have fixtures adapted for mock 2.0 output
+
+-------------------------------------------------------------------
+Mon Jan  6 13:11:42 UTC 2020 - Tomáš Chvátal <tchva...@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 <tchva...@suse.com>
+
+- Update to 1.12.1:
+  * Fix error if mocker.patch is used in code where the source file
+    is not available, for example stale .pyc files
+  * Now all patch functions also raise a ValueError when used as a
+    context-manager
+
+-------------------------------------------------------------------
+Sat Nov 16 22:35:16 UTC 2019 - Hans-Peter Jansen <h...@urpla.net>
+
+- Disable current failing tests
+  see: https://github.com/pytest-dev/pytest-mock/issues/167
+  boils done to an issue of pytest
+
+-------------------------------------------------------------------
+Tue Nov  5 10:50:54 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 1.11.2:
+  * The pytest introspection follows message is no longer shown
+    if there is no pytest introspection (#154)
+  * mocker now raises a ValueError when used as a context-manager
+
+-------------------------------------------------------------------
+Mon Oct  7 12:56:56 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 1.11.1:
+  * Fix mocker.spy on Python 2 when used on non-function objects
+    which implement __call__ (#157).
+
+-------------------------------------------------------------------
+Mon Sep 30 12:22:25 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- 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
+
+-------------------------------------------------------------------
+Wed Sep 11 08:21:28 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Add back the mock 3.0 patch as the mock is being integrated now:
+  * mock3.patch
+
+-------------------------------------------------------------------
+Fri Jul 26 12:26:36 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Remove mock30.patch for now as we are not able to upgrade
+  to mock3 yet
+
+-------------------------------------------------------------------
+Thu Jul 18 08:52:38 UTC 2019 - Ondřej Súkup <mimi...@gmail.com>
+
+- add upstream patch to test with pytest5 - fix_tests.patch 
+
+-------------------------------------------------------------------
+Wed May 15 17:39:00 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Add patch from upstream to build with new mock:
+  * mock30.patch
+
+-------------------------------------------------------------------
+Mon Apr 29 08:07:10 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 1.10.4:
+  * Fix plugin when 'terminal' plugin is disabled
+
+-------------------------------------------------------------------
+Mon Apr  1 08:34:55 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 1.10.3:
+  * Fix test suite in Python 3.8. Thanks @hroncok for the report and @blueyed 
for the PR (#140).
+
+-------------------------------------------------------------------
+Tue Mar 26 09:33:33 UTC 2019 - John Vandenberg <jay...@gmail.com>
+
+- Update to v1.10.2
+  * Fix bug at the end of the test session when a call to
+    patch.stopall is done explicitly by user code.
+
+-------------------------------------------------------------------
+Wed Feb 13 09:46:47 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 1.10.1:
+  * Fix broken links and update README. Also the code is now formatted using 
black.
+
+-------------------------------------------------------------------
+Sun May  6 19:35:00 UTC 2018 - a...@gmx.de
+
+- update to version 1.10.0:
+  * Add support for the recently added assert_called method in Python
+    3.6 and mock-2.0. Thanks @rouge8 for the PR (#115).
+
+-------------------------------------------------------------------
+Sat Apr 21 16:39:10 UTC 2018 - a...@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...@gmail.com
+
+- update to 1.7.1
+  * fix reading README.rst in setup.py
+
+-------------------------------------------------------------------
+Fri Mar  2 10:04:50 UTC 2018 - ch...@computersalat.de
+
+- fix deps for setuptools
+
+-------------------------------------------------------------------
+Thu Mar  1 00:05:11 UTC 2018 - mimi...@gmail.com
+
+- update to 1.7.0
+  * Drop support for python-2.6 and python-3.3
+
+-------------------------------------------------------------------

Old:
----
  pytest-mock-1.6.3.tar.gz

New:
----
  pytest-mock-2.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-mock.spec ++++++
--- /var/tmp/diff_new_pack.10Wp7W/_old  2020-04-28 20:09:46.932362973 +0200
+++ /var/tmp/diff_new_pack.10Wp7W/_new  2020-04-28 20:09:46.936362981 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-mock
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -12,25 +12,23 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %define oldpython python
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define         modname pytest-mock
 %bcond_without python2
-Name:           python-%{modname}
-Version:        1.6.3
+Name:           python-pytest-mock
+Version:        2.0.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}
-BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-pytest
@@ -40,8 +38,6 @@
 %endif
 %ifpython2
 Requires:       %{oldpython}-mock
-%else
-Recommends:     python-mock
 %endif
 %python_subpackages
 
@@ -52,7 +48,7 @@
 of a test
 
 %prep
-%setup -q -n %{modname}-%{version}
+%setup -q -n pytest-mock-%{version}
 
 %build
 %python_build
@@ -62,8 +58,10 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
py.test-%{$python_version} test_pytest_mock.py
-%python_expand rm -rf %{buildroot}%{$python_sitelib}/__pycache__
+export PYTHONDONTWRITEBYTECODE=1
+# disable current failing tests
+# add skip for more tests that require mock 2.0, the code works but fixture 
changes layout
+%pytest -k 'not (test_assert_called_args_with_introspection or 
test_assert_called_kwargs_with_introspection or test_detailed_introspection or 
test_failure_message_with_name or test_failure_message_with_no_name)'
 
 %files %{python_files}
 %doc CHANGELOG.rst

++++++ pytest-mock-1.6.3.tar.gz -> pytest-mock-2.0.0.tar.gz ++++++
++++ 4064 lines of diff (skipped)


Reply via email to