Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-mock for 
openSUSE:Factory checked in at 2021-06-19 23:01:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-mock (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-mock.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-mock"

Sat Jun 19 23:01:45 2021 rev:20 rq:900347 version:3.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-mock/python-pytest-mock.changes    
2020-06-11 14:45:56.301598607 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-mock.new.2625/python-pytest-mock.changes
  2021-06-19 23:01:48.223578103 +0200
@@ -1,0 +2,63 @@
+Thu Jun  3 09:35:04 UTC 2021 - Antonio Larrosa <alarr...@suse.com>
+
+- Update to 3.6.1:
+  * Fix mocker.resetall() when using mocker.spy() (#237)
+
+- Update to 3.6.0:
+  * pytest-mock no longer supports Python 3.5.
+  * Correct type annotations for mocker.patch.object to also
+    include the string form.
+  * reset_all now supports return_value and side_effect keyword
+    arguments.
+
+- Update to 3.5.1:
+  * Use inspect.getattr_static instead of resorting to
+    object.__getattribute__ magic. This should better comply with
+    objects which implement a custom descriptor protocol.
+
+- Update to 3.5.0:
+  * Now all patch functions will emit a warning instead of raising
+    a ValueError when used as a context-manager.
+  * Additionally, mocker.patch.context_manager is available when
+    the user intends to mock a context manager (for example
+    threading.Lock object), which will not emit that warning.
+
+- Update to 3.4.0:
+  * Add [mock.seal]{.title-ref} alias to the [mocker]{.title-ref}
+    fixture (#211).
+  * Fixed spying on exceptions not covered by the Exception
+    superclass (#215), like KeyboardInterrupt
+    Before the fix, both spy_return and spy_exception were always
+    assigned to None whenever such an exception happened. And
+    after this fix, spy_exception is set to a correct value of
+    an exception.
+
+- Update to 3.3.1:
+  * Introduce MockFixture as an alias to MockerFixture.
+    Before 3.3.0, the fixture class was named MockFixture, but was
+    renamed to MockerFixture to better match the mocker fixture.
+    While not officially part of the API, it was later discovered
+    that this broke the code of some users which already imported
+    pytest_mock.MockFixture for type annotations, so we decided to
+    reintroduce the name as an alias.
+    Note however that this is just a stop gap measure, and new code
+    should use MockerFixture for type annotations.
+  * Improved typing for MockerFixture.patch (#201).
+
+- Update to 3.3.0:
+  * pytest-mock now includes inline type annotations and exposes
+    them to user programs. The mocker fixture returns
+    pytest_mock.MockerFixture, which can be used to annotate your
+    tests:
+    from pytest_mock import MockerFixture
+    def test_foo(mocker: MockerFixture) -> None:
+        ...
+  * The type annotations were developed against mypy version 0.782,
+    the minimum version supported at the moment. If you run into an
+    error that you believe to be incorrect, please open an issue.
+
+- Update to 3.2.0:
+  * AsyncMock is now exposed in mocker and supports provides
+    assertion introspection similar to Mock objects.
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ python-pytest-mock.spec ++++++
--- /var/tmp/diff_new_pack.Rj8QDd/_old  2021-06-19 23:01:48.735578758 +0200
+++ /var/tmp/diff_new_pack.Rj8QDd/_new  2021-06-19 23:01:48.739578764 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-mock
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,13 +19,14 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-pytest-mock
-Version:        3.1.1
+Version:        3.6.1
 Release:        0
 Summary:        Thin-wrapper around the mock package for easier use with pytest
 License:        MIT
 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 pytest >= 5}
+BuildRequires:  %{python_module pytest-asyncio}
 BuildRequires:  %{python_module setuptools >= 36}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  fdupes
@@ -51,7 +52,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%pytest
+%pytest --assert=plain
 
 %files %{python_files}
 %doc CHANGELOG.rst

++++++ pytest-mock-3.1.1.tar.gz -> pytest-mock-3.6.1.tar.gz ++++++
++++ 2372 lines of diff (skipped)

Reply via email to