head	1.5;
access;
symbols
	pkgsrc-2026Q1:1.5.0.8
	pkgsrc-2026Q1-base:1.5
	pkgsrc-2025Q4:1.5.0.6
	pkgsrc-2025Q4-base:1.5
	pkgsrc-2025Q3:1.5.0.4
	pkgsrc-2025Q3-base:1.5
	pkgsrc-2025Q2:1.5.0.2
	pkgsrc-2025Q2-base:1.5
	pkgsrc-2025Q1:1.4.0.10
	pkgsrc-2025Q1-base:1.4
	pkgsrc-2024Q4:1.4.0.8
	pkgsrc-2024Q4-base:1.4
	pkgsrc-2024Q3:1.4.0.6
	pkgsrc-2024Q3-base:1.4
	pkgsrc-2024Q2:1.4.0.4
	pkgsrc-2024Q2-base:1.4
	pkgsrc-2024Q1:1.4.0.2
	pkgsrc-2024Q1-base:1.4
	pkgsrc-2023Q4:1.3.0.18
	pkgsrc-2023Q4-base:1.3
	pkgsrc-2023Q3:1.3.0.16
	pkgsrc-2023Q3-base:1.3
	pkgsrc-2023Q2:1.3.0.14
	pkgsrc-2023Q2-base:1.3
	pkgsrc-2023Q1:1.3.0.12
	pkgsrc-2023Q1-base:1.3
	pkgsrc-2022Q4:1.3.0.10
	pkgsrc-2022Q4-base:1.3
	pkgsrc-2022Q3:1.3.0.8
	pkgsrc-2022Q3-base:1.3
	pkgsrc-2022Q2:1.3.0.6
	pkgsrc-2022Q2-base:1.3
	pkgsrc-2022Q1:1.3.0.4
	pkgsrc-2022Q1-base:1.3
	pkgsrc-2021Q4:1.3.0.2
	pkgsrc-2021Q4-base:1.3
	pkgsrc-2021Q3:1.2.0.16
	pkgsrc-2021Q3-base:1.2
	pkgsrc-2021Q2:1.2.0.14
	pkgsrc-2021Q2-base:1.2
	pkgsrc-2021Q1:1.2.0.12
	pkgsrc-2021Q1-base:1.2
	pkgsrc-2020Q4:1.2.0.10
	pkgsrc-2020Q4-base:1.2
	pkgsrc-2020Q3:1.2.0.8
	pkgsrc-2020Q3-base:1.2
	pkgsrc-2020Q2:1.2.0.6
	pkgsrc-2020Q2-base:1.2
	pkgsrc-2020Q1:1.2.0.2
	pkgsrc-2020Q1-base:1.2
	pkgsrc-2019Q4:1.2.0.4
	pkgsrc-2019Q4-base:1.2
	pkgsrc-2019Q3:1.1.0.22
	pkgsrc-2019Q3-base:1.1
	pkgsrc-2019Q2:1.1.0.20
	pkgsrc-2019Q2-base:1.1
	pkgsrc-2019Q1:1.1.0.18
	pkgsrc-2019Q1-base:1.1
	pkgsrc-2018Q4:1.1.0.16
	pkgsrc-2018Q4-base:1.1
	pkgsrc-2018Q3:1.1.0.14
	pkgsrc-2018Q3-base:1.1
	pkgsrc-2018Q2:1.1.0.12
	pkgsrc-2018Q2-base:1.1
	pkgsrc-2018Q1:1.1.0.10
	pkgsrc-2018Q1-base:1.1
	pkgsrc-2017Q4:1.1.0.8
	pkgsrc-2017Q4-base:1.1
	pkgsrc-2017Q3:1.1.0.6
	pkgsrc-2017Q3-base:1.1
	pkgsrc-2017Q2:1.1.0.2
	pkgsrc-2017Q2-base:1.1;
locks; strict;
comment	@# @;


1.5
date	2025.04.12.21.10.57;	author adam;	state Exp;
branches;
next	1.4;
commitid	hogTAPDx6qJl3OQF;

1.4
date	2024.03.24.17.43.21;	author adam;	state Exp;
branches;
next	1.3;
commitid	f5piIZoAOgpdfr3F;

1.3
date	2021.11.25.20.10.26;	author adam;	state Exp;
branches;
next	1.2;
commitid	uLpUzeCDjafcndiD;

1.2
date	2019.10.16.16.37.52;	author adam;	state Exp;
branches;
next	1.1;
commitid	4n2s5DQWAlxlZ6HB;

1.1
date	2017.04.04.14.02.44;	author wiz;	state Exp;
branches;
next	;
commitid	0TJF1LOHKHIERdMz;


desc
@@


1.5
log
@Fix PLIST after py-setuptools update; bump depends and revision
@
text
@@@comment $NetBSD: PLIST,v 1.4 2024/03/24 17:43:21 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/pytest_mock/__init__.py
${PYSITELIB}/pytest_mock/__init__.pyc
${PYSITELIB}/pytest_mock/__init__.pyo
${PYSITELIB}/pytest_mock/_util.py
${PYSITELIB}/pytest_mock/_util.pyc
${PYSITELIB}/pytest_mock/_util.pyo
${PYSITELIB}/pytest_mock/_version.py
${PYSITELIB}/pytest_mock/_version.pyc
${PYSITELIB}/pytest_mock/_version.pyo
${PYSITELIB}/pytest_mock/plugin.py
${PYSITELIB}/pytest_mock/plugin.pyc
${PYSITELIB}/pytest_mock/plugin.pyo
${PYSITELIB}/pytest_mock/py.typed
@


1.4
log
@py-test-mock: updated to 3.14.0

3.14.0 (2024-03-21)
-------------------

* `MockType`` and ``AsyncMockType`` can be imported from ``pytest_mock`` for type annotation purposes.

* Fixed a regression which would cause ``mocker.patch.object`` to not being properly cleared between tests.


3.13.0 (2024-03-21)
-------------------

* ``spy`` now has ``spy_return_list``, which is a list containing all the values returned by the spied function.
* ``pytest-mock`` now requires ``pytest>=6.2.5``.
* pytest-mock's ``setup.py`` file is removed.
  If you relied on this file, e.g. to install pytest using ``setup.py install``,
  please see `Why you shouldn't invoke setup.py directly <https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary>`_ for alternatives.
@
text
@d1 1
a1 2
@@comment $NetBSD: PLIST,v 1.3 2021/11/25 20:10:26 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
d6 1
@


1.3
log
@py-test-mock: updated to 3.6.1

3.6.1 (2021-05-06)
------------------

* Fix ``mocker.resetall()`` when using ``mocker.spy()``

3.6.0 (2021-04-24)
------------------

* 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.

3.5.1 (2021-01-10)
------------------

* Use ``inspect.getattr_static`` instead of resorting to ``object.__getattribute__``
  magic. This should better comply with objects which implement a custom descriptor
  protocol.

3.5.0 (2021-01-04)
------------------

* 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.

3.4.0 (2020-12-15)
------------------

* Add `mock.seal` alias to the `mocker` fixture.

* Fixed spying on exceptions not covered by the ``Exception``
  superclass, 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
  that has actually happened.

3.3.1 (2020-08-24)
------------------

* 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``

3.3.0 (2020-08-21)
------------------

* ``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:

  .. code-block:: python

        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.

3.2.0 (2020-07-11)
------------------

* `AsyncMock <https://docs.python.org/3/library/unittest.mock.html#unittest.mock.AsyncMock>`__ is now exposed in ``mocker`` and supports provides assertion introspection similar to ``Mock`` objects.

3.1.1 (2020-05-31)
------------------

* Fixed performance regression caused by the ``ValueError`` raised
  when ``mocker`` is used as context manager.

3.1.0 (2020-04-18)
------------------

* New mocker fixtures added that allow using mocking functionality in other scopes:

  * ``class_mocker``
  * ``module_mocker``
  * ``package_mocker``
  * ``session_mocker``

3.0.0 (2020-03-31)
------------------

* Python 2.7 and 3.4 are no longer supported. Users using ``pip 9`` or later will install
  a compatible version automatically.

* ``mocker.spy`` now also works with ``async def`` functions.
@
text
@d1 7
a7 7
@@comment $NetBSD: PLIST,v 1.2 2019/10/16 16:37:52 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
@


1.2
log
@py-test-mock: updated to 1.11.1

1.11.1
* Fix ``mocker.spy`` on Python 2 when used on non-function objects
  which implement ``__call__``.
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.1 2017/04/04 14:02:44 wiz Exp $
d11 3
d20 1
@


1.1
log
@Import py-test-mock-1.6.0 as devel/py-test-mock.

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.
@
text
@d1 1
a1 1
@@comment $NetBSD$
d8 9
a16 6
${PYSITELIB}/_pytest_mock_version.py
${PYSITELIB}/_pytest_mock_version.pyc
${PYSITELIB}/_pytest_mock_version.pyo
${PYSITELIB}/pytest_mock.py
${PYSITELIB}/pytest_mock.pyc
${PYSITELIB}/pytest_mock.pyo
@

