Skip to content

Latest commit

 

History

History
138 lines (92 loc) · 3.77 KB

CHANGELOG.rst

File metadata and controls

138 lines (92 loc) · 3.77 KB

0.11.0

  • PropertyMock is now accessible from mocker. Thanks @satyrius for the PR (#32).
  • Fix regression using one of the assert_* methods in patched functions which receive a parameter named method. Thanks @sagarchalise for the report (#31).

0.10.1

  • Fix regression in frozen tests due to distutils import dependency. Thanks @The-Compiler for the report (#29).
  • Fix regression when using pytest-mock with pytest-2.7.X. Thanks @akscram for the report (#28).

0.10

  • pytest-mock now monkeypatches the mock library to improve pytest output for failures of mock call assertions like Mock.assert_called_with(). Thanks to @Chronial for idea and PR (#26, #27)!

0.9.0

  • New mocker.resetall function, which calls reset_mock() in all mocked objects up to that point. Thanks to @mathrick for the PR!

0.8.1

  • pytest-mock is now also available as a wheel. Thanks @rouge8 for the PR!

0.8.0

  • mock.ANY is now accessible from the mocker fixture (#17), thanks @tigarmo for the PR!

0.7.0

Thanks to @fogo, mocker.spy can now prey upon staticmethods and classmethods. 😄

0.6.0

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

0.5.0

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

0.4.3

0.4.2

  • 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!

0.4.1

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

0.4.0

  • 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 fixture were required within a test.

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

0.3.0

  • Fixed bug #2, where a patch would not be uninstalled correctly after patching the same object twice.

0.2.0

  • Added patch.dict support.

0.1.0

First release.