Path to this page:
./
devel/py-test-mock,
Thin-wrapper around the mock package for easier use with py.test
Branch: CURRENT,
Version: 3.14.0,
Package name: py312-test-mock-3.14.0,
Maintainer: pkgsrc-usersThis 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.
Required to run:[
devel/py-setuptools] [
devel/py-test] [
lang/python37]
Required to build:[
pkgtools/cwrappers] [
devel/py-setuptools_scm]
Master sites:
Filesize: 32.045 KB
Version history: (Expand)
- (2024-11-11) Updated to version: py312-test-mock-3.14.0
- (2024-03-24) Updated to version: py311-test-mock-3.14.0
- (2023-10-20) Updated to version: py311-test-mock-3.12.0
- (2023-06-17) Updated to version: py310-test-mock-3.11.1
- (2022-10-25) Updated to version: py310-test-mock-3.10.0
- (2022-04-26) Updated to version: py39-test-mock-3.7.0
CVS history: (Expand)
2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862) |
Log message:
py-*: remove unused tool dependency
py-setuptools includes the py-wheel functionality nowadays
|
2024-03-24 18:43:21 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
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.
|
2023-10-20 16:17:44 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-test-mock: updated to 3.12.0
3.12.0 (2023-10-19)
-------------------
* Added support for Python 3.12.
* Dropped support for EOL Python 3.7.
* ``mocker.resetall()`` now also resets mocks created by ``mocker.create_autospec``
|
2023-06-17 20:30:21 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-test-mock: updated to 3.11.1
3.11.1 (2023-06-15)
-------------------
* Fixed introspection for failed ``assert_has_calls``
* Updated type annotations for ``mocker.patch`` and ``mocker.spy``
|
2023-06-06 14:42:56 by Taylor R Campbell | Files touched by this commit (1319) |
Log message:
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.
Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).
No change to BUILD_DEPENDS as used correctly inside buildlink3.
As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
|
2022-10-25 09:58:13 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-test-mock: updated to 3.10.0
3.10.0 (2022-10-05)
* Added new ``mocker.stop(m)`` method to stop specific ``mocker.patch`` or \
``mocker.spy`` calls.
3.9.0 (2022-09-28)
* Expose ``NonCallableMagicMock`` via the ``mocker`` fixture.
3.8.2 (2022-07-05)
- Fixed ``AsyncMock`` support for Python 3.7+ in ``mocker.async_stub``.
3.8.1 (2022-06-24)
* Fixed regression caused by an explicit ``mock`` dependency in the code.
3.8.0 (2022-06-24)
* Add ``MockerFixture.async_mock`` method.
|
2022-04-26 12:34:44 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-test-mock: updated to 3.7.0
3.7.0 (2022-01-28)
------------------
* Python 3.10 now officially supported.
* Dropped support for Python 3.6.
|
2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595) |
Log message:
*: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
|