Skip to content

Releases: pytest-dev/pytest-mock

New spy and stub methods

02 Jun 21:11
Compare
Choose a tag to compare

Two new auxiliary methods, spy and stub. See README for usage. (Thanks @fogo for complete PR!)

Mock and MagicMock

03 May 18:02
Compare
Choose a tag to compare

Mock and MagicMock are now accessible from the mocker fixture, many thanks to @marcwebbie for the complete PR!

mocker and backward compatible mock fixture now return the same object

09 Apr 10:39
Compare
Choose a tag to compare
  • mocker and backward compatible mock fixture now return the same object (#8). Many thanks to @RonnyPfannschmidt for the PR!

Wheels package no longer available

31 Mar 20:43
Compare
Choose a tag to compare

Small fix, no longer using wheel as an alternate package since it conditionally depends on mock module based on Python version, as Python >= 3.3 already includes unittest.mock . Many thanks to @The-Compiler for letting me know and providing a PR with the fix!

Using the same name for plugin as the module name

15 Mar 18:22
Compare
Choose a tag to compare

Small release that just uses pytest_mock as the name of the plugin, instead of pytest-mock: this makes it simple to depend on this plugin explicitly using pytest_plugins module variable mechanism

"mock" fixture is dead, long live "mocker"

17 Sep 02:22
Compare
Choose a tag to compare

Changed fixture name from mock into mocker because it conflicted with the actual mock module, which made using it awkward when access to both the module and the plugin were required within a test.

Thanks @kmosher for request and discussion in #4. 😄

Bug fix release

26 Aug 02:45
Compare
Choose a tag to compare
  • Fixed bug #2, where a patch would not be uninstalled correctly after patching the same object twice

Added patch.dict support

19 Jul 00:14
Compare
Choose a tag to compare
v0.2.0

Bumping to version 0.2.0

First release

17 Jul 03:22
Compare
Choose a tag to compare
v0.1.0

Adjustments for PyPI release