Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

python312-pytest-mock-3.12.0-2.5 RPM for noarch

From OpenSuSE Tumbleweed for noarch

Name: python312-pytest-mock Distribution: openSUSE Tumbleweed
Version: 3.12.0 Vendor: openSUSE
Release: 2.5 Build date: Wed Dec 20 13:28:16 2023
Group: Unspecified Build host: reproducible
Size: 111577 Source RPM: python-pytest-mock-3.12.0-2.5.src.rpm
Packager: https://bugs.opensuse.org
Url: https://github.com/pytest-dev/pytest-mock
Summary: Thin-wrapper around the mock package for easier use with pytest
This plugin installs a ``mocker`` fixture which is a thin-wrapper around the patching API
provided by the `mock` package, but with the benefit of not having to worry about undoing
patches at the end of a test

Provides

Requires

License

MIT

Changelog

* Wed Dec 20 2023 Daniel Garcia <daniel.garcia@suse.com>
  - Fix tests with python 3.11.7
  - Add patch fix-tests-python3117.patch gh#pytest-dev/pytest-mock#403
* Tue Nov 07 2023 Dirk Müller <dmueller@suse.com>
  - update to 3.12.0:
    * Added support for Python 3.12.
    * Dropped support for EOL Python 3.7.
    * ``mocker.resetall()`` now also resets mocks created by
      ``mocker.create_autospec`` (`#390`_).
* Mon Jul 24 2023 Dirk Müller <dmueller@suse.com>
  - update to 3.11.1:
    * Fixed introspection for failed ``assert_has_calls``
    * Updated type annotations for ``mocker.patch`` and
      ``mocker.spy`` (`#364`_).
* Fri Apr 21 2023 Dirk Müller <dmueller@suse.com>
  - add sle15_python_module_pythons (jsc#PED-68)
* Thu Apr 13 2023 Matej Cepl <mcepl@suse.com>
  - Make calling of %{sle15modernpython} optional.
* Wed Nov 30 2022 Daniel Garcia <daniel.garcia@suse.com>
  - Remove python_module macro definition
  - Remove pytest-mock-issue272-asyncio.patch
  - Add python-py dependency
  - Update to 3.10.0:
    * Added new mocker.stop(m) method to stop specific mocker.patch or mocker.spy
      calls (#319).
  - 3.9.0:
    * Expose NonCallableMagicMock via the mocker fixture (#318).
  - 3.8.2:
    * Fixed AsyncMock support for Python 3.7+ in mocker.async_stub (#302).
  - 3.8.1:
    * Fix regression caused by an explicit mock dependency in the code (#298).
  - 3.8.0:
    * Add MockerFixture.async_mock method. Thanks @PerchunPak for the PR (#296).
  - 3.7.0:
    * Python 3.10 now officially supported.
    * Dropped support for Python 3.6.
* Sat Jan 22 2022 Ben Greiner <code@bnavigator.de>
  - Add pytest-mock-issue272-asyncio.patch
    * gh#pytest-dev/pytest-mock#272
* Thu Jun 03 2021 Antonio Larrosa <alarrosa@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.
* Tue Jun 09 2020 Tomáš Chvátal <tchvatal@suse.com>
  - Update to 3.1.1:
    * Fixed performance regression caused by the ValueError raised
      when mocker is used as context manager (#191).
* Mon Apr 27 2020 Tomáš Chvátal <tchvatal@suse.com>
  - Update to 3.1.0:
    * Python 2.7 and 3.4 are no longer supported
    * New mocker fixtures added that allow using mocking functionality
      in other scopes

Files

/usr/lib/python3.12/site-packages/pytest_mock
/usr/lib/python3.12/site-packages/pytest_mock-3.12.0-py3.12.egg-info
/usr/lib/python3.12/site-packages/pytest_mock-3.12.0-py3.12.egg-info/PKG-INFO
/usr/lib/python3.12/site-packages/pytest_mock-3.12.0-py3.12.egg-info/SOURCES.txt
/usr/lib/python3.12/site-packages/pytest_mock-3.12.0-py3.12.egg-info/dependency_links.txt
/usr/lib/python3.12/site-packages/pytest_mock-3.12.0-py3.12.egg-info/entry_points.txt
/usr/lib/python3.12/site-packages/pytest_mock-3.12.0-py3.12.egg-info/requires.txt
/usr/lib/python3.12/site-packages/pytest_mock-3.12.0-py3.12.egg-info/top_level.txt
/usr/lib/python3.12/site-packages/pytest_mock/__init__.py
/usr/lib/python3.12/site-packages/pytest_mock/__pycache__
/usr/lib/python3.12/site-packages/pytest_mock/__pycache__/__init__.cpython-312.opt-1.pyc
/usr/lib/python3.12/site-packages/pytest_mock/__pycache__/__init__.cpython-312.pyc
/usr/lib/python3.12/site-packages/pytest_mock/__pycache__/_util.cpython-312.opt-1.pyc
/usr/lib/python3.12/site-packages/pytest_mock/__pycache__/_util.cpython-312.pyc
/usr/lib/python3.12/site-packages/pytest_mock/__pycache__/_version.cpython-312.opt-1.pyc
/usr/lib/python3.12/site-packages/pytest_mock/__pycache__/_version.cpython-312.pyc
/usr/lib/python3.12/site-packages/pytest_mock/__pycache__/plugin.cpython-312.opt-1.pyc
/usr/lib/python3.12/site-packages/pytest_mock/__pycache__/plugin.cpython-312.pyc
/usr/lib/python3.12/site-packages/pytest_mock/_util.py
/usr/lib/python3.12/site-packages/pytest_mock/_version.py
/usr/lib/python3.12/site-packages/pytest_mock/plugin.py
/usr/lib/python3.12/site-packages/pytest_mock/py.typed
/usr/share/doc/packages/python312-pytest-mock
/usr/share/doc/packages/python312-pytest-mock/CHANGELOG.rst
/usr/share/licenses/python312-pytest-mock
/usr/share/licenses/python312-pytest-mock/LICENSE


Generated by rpm2html 1.8.1

Fabrice Bellet, Wed May 1 23:23:10 2024