summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test/testmock/testpatch.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixes issue28380: unittest.mock Mock autospec functions now properly supportGregory P. Smith2016-10-061-0/+6
| | | | assert_called, assert_not_called, and assert_called_once.
* Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-2/+2
|
* Issue #22138: Fix mock.patch behavior when patching descriptors. RestoreSenthil Kumaran2016-01-091-0/+26
| | | | | | original values after patching. Patch contributed by Sean McCully.
* MergeMichael Foord2014-04-151-1/+18
|\
| * Closes issue 21239. unittest.mock.patch.stopall() did not work ↵Michael Foord2014-04-151-1/+18
| | | | | | | | deterministically when the same name was patched multiple times.
* | Closes issue 17660. You no longer need to explicitly pass create=True when ↵Michael Foord2014-04-141-2/+22
|/ | | | patching builtin names.
* Issue #19013: add unittest.main() epilogs to unittest.mock's own test modulesAntoine Pitrou2013-09-131-1/+0
|
* Adding patch.stopall method to unittest.mockMichael Foord2012-06-101-0/+18
|
* unittest.mock: a mock created by patch with a spec as the list argument will ↵Michael Foord2012-03-251-0/+20
| | | | be callable if __call__ is in the spec
* Support subclassing unittest.mock._patch and fix various obscure bugs around ↵Michael Foord2012-03-251-7/+102
| | | | patcher spec arguments
* And another one... mock import fix.Michael Foord2012-03-141-2/+2
|
* Fix import failure in mock testMichael Foord2012-03-141-1/+1
|
* PEP 417: Adding unittest.mockMichael Foord2012-03-141-0/+1652