Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Closes issue 21239. unittest.mock.patch.stopall() did not work ↵ | Michael Foord | 2014-04-15 | 1 | -5/+10 |
| | | | | deterministically when the same name was patched multiple times. | ||||
* | Closes Issue 21222. | Kushal Das | 2014-04-15 | 1 | -0/+2 |
| | | | | Passing name keyword argument to mock.create_autospec now works. | ||||
* | Issue 17826. Setting an iterable side_effect on a mock created by ↵ | Michael Foord | 2014-04-14 | 1 | -2/+13 |
| | | | | create_autospec now works | ||||
* | Issue 20968. unittest.mock.MagicMock now supports division | Michael Foord | 2014-04-14 | 1 | -1/+3 |
| | |||||
* | Issue #20189: Four additional builtin types (PyTypeObject, | Larry Hastings | 2014-01-24 | 1 | -3/+16 |
| | | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes. | ||||
* | Process DEFAULT values in mock side_effect that returns iterator. | Andrew Svetlov | 2013-04-07 | 1 | -0/+2 |
|\ | | | | | | | Patch by Michael Ford. | ||||
| * | Process DEFAULT values in mock side_effect that returns iterator. | Andrew Svetlov | 2013-04-07 | 1 | -0/+2 |
| | | | | | | | | Patch by Michael Ford. | ||||
* | | #17504: merge with 3.3. | Ezio Melotti | 2013-03-24 | 1 | -3/+0 |
|\ \ | |/ | |||||
| * | #17504: remove duplicated sentence. Patch by Radu Voicilas. | Ezio Melotti | 2013-03-24 | 1 | -3/+0 |
| | | |||||
* | | Closes issue 17467. Add readline and readlines support to ↵ | Michael Foord | 2013-03-20 | 1 | -6/+49 |
| | | | | | | | | unittest.mock.mock_open | ||||
* | | Merge with 3.3, issue #17047: remove doubled words added in 3.3, | Terry Jan Reedy | 2013-03-11 | 1 | -1/+1 |
|\ \ | |/ | | | | | as reported by Serhiy Storchaka and Matthew Barnett. | ||||
| * | Issue #17047: remove doubled words added in 3.3 | Terry Jan Reedy | 2013-03-11 | 1 | -1/+1 |
| | | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett. | ||||
* | | Issue #17015: When it has a spec, a Mock object now inspects its signature ↵ | Antoine Pitrou | 2013-02-02 | 1 | -65/+109 |
|/ | | | | when matching calls, so that arguments can be matched positionally or by name. | ||||
* | Closes issue 15323. Improve failure message of Mock.assert_called_once_with | Michael Foord | 2012-09-28 | 1 | -2/+2 |
| | |||||
* | Adding patch.stopall method to unittest.mock | Michael Foord | 2012-06-10 | 1 | -2/+20 |
| | |||||
* | Fix exception when calling reset_mock on a mock created with autospec | Michael Foord | 2012-06-09 | 1 | -0/+3 |
| | |||||
* | Close #14857: fix regression in references to PEP 3135 implicit __class__ ↵ | Nick Coghlan | 2012-05-27 | 1 | -3/+6 |
| | | | | closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue | ||||
* | Remove incorrect comment | Michael Foord | 2012-04-21 | 1 | -1/+0 |
| | |||||
* | Closes issue 14634. unittest.mock.create_autospec now supports keyword only ↵ | Michael Foord | 2012-04-21 | 1 | -3/+8 |
| | | | | arguments. | ||||
* | Closes issue 14636. mock objects raise exceptions from an iterable side_effect | Michael Foord | 2012-04-21 | 1 | -3/+7 |
| | |||||
* | Minor docstring / docs corrections for unittest.mock | Michael Foord | 2012-04-13 | 1 | -6/+6 |
| | |||||
* | Make unittest.mock.create_autospec resilient against AttributeError on ↵ | Michael Foord | 2012-04-13 | 1 | -2/+6 |
| | | | | original object | ||||
* | unittest.mock.PropertyMock return value and attributes are now standard ↵ | Michael Foord | 2012-04-13 | 1 | -0/+3 |
| | | | | MagicMocks | ||||
* | Fix unittest.mock.patch docstring | Michael Foord | 2012-03-28 | 1 | -2/+0 |
| | |||||
* | Minor unittest.mock.patch doc / docstring improvement | Michael Foord | 2012-03-28 | 1 | -11/+16 |
| | |||||
* | unittest.mock: removed another bit of Python 2 only code | Michael Foord | 2012-03-25 | 1 | -6/+0 |
| | |||||
* | Adding unittest.mock documentation | Michael Foord | 2012-03-25 | 1 | -5/+3 |
| | |||||
* | unittest.mock: a mock created by patch with a spec as the list argument will ↵ | Michael Foord | 2012-03-25 | 1 | -1/+8 |
| | | | | be callable if __call__ is in the spec | ||||
* | unittest.mock: remove another piece of Python 2 specific code | Michael Foord | 2012-03-25 | 1 | -2/+0 |
| | |||||
* | Remove more Python 2 code from unittest.mock (obsolete function attributes) | Michael Foord | 2012-03-25 | 1 | -14/+0 |
| | |||||
* | Minor changes to the unittest.mock.mock_open helper | Michael Foord | 2012-03-25 | 1 | -5/+4 |
| | |||||
* | Addition of docstrings to unittest.mock helpers | Michael Foord | 2012-03-25 | 1 | -2/+20 |
| | |||||
* | unittest.mock: set file_spec on first use | Michael Foord | 2012-03-25 | 1 | -2/+6 |
| | |||||
* | Support subclassing unittest.mock._patch and fix various obscure bugs around ↵ | Michael Foord | 2012-03-25 | 1 | -25/+49 |
| | | | | patcher spec arguments | ||||
* | unittest.mock.MagicMock objects are now unorderable by default | Michael Foord | 2012-03-25 | 1 | -9/+13 |
| | |||||
* | Removed XXX from unittest.mock docstring and switch to a nicer ↵ | Michael Foord | 2012-03-14 | 1 | -24/+19 |
| | | | | try...except...finally | ||||
* | Remove more Python 2 compatibility cruft from unittest.mock | Michael Foord | 2012-03-14 | 1 | -11/+4 |
| | |||||
* | Remove Python 2 compatibility cruft from unittest.mock | Michael Foord | 2012-03-14 | 1 | -5/+3 |
| | |||||
* | PEP 417: Adding unittest.mock | Michael Foord | 2012-03-14 | 1 | -0/+2151 |