Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Issue25347 - Format the error message output of mock's assert_has_calls method. | Senthil Kumaran | 2016-01-12 | 1 | -1/+1 | |
|/ | | | | Patch contributed by Robert Zimmerman. | |||||
* | Issue #22138: Fix mock.patch behavior when patching descriptors. Restore | Senthil Kumaran | 2016-01-09 | 1 | -1/+4 | |
| | | | | | | original values after patching. Patch contributed by Sean McCully. | |||||
* | Issue #24857: Comparing call_args to a long sequence now correctly returns a | Berker Peksag | 2015-09-09 | 1 | -2/+3 | |
|\ | | | | | | | | | | | boolean result instead of raising an exception. Patch by A Kaptur. | |||||
| * | Issue #24857: Comparing call_args to a long sequence now correctly returns a | Berker Peksag | 2015-09-09 | 1 | -2/+3 | |
| | | | | | | | | | | | | boolean result instead of raising an exception. Patch by A Kaptur. | |||||
* | | Issue #23004: mock_open() now reads binary data correctly when the type of ↵ | Berker Peksag | 2015-08-06 | 1 | -3/+4 | |
|\ \ | |/ | | | | | | | | | read_data is bytes. Initial patch by Aaron Hill. | |||||
| * | Issue #23004: mock_open() now reads binary data correctly when the type of ↵ | Berker Peksag | 2015-08-06 | 1 | -3/+4 | |
| | | | | | | | | | | | | read_data is bytes. Initial patch by Aaron Hill. | |||||
* | | Issue #21750: Further fixup to be styled like other mock APIs. | Robert Collins | 2015-07-23 | 1 | -36/+43 | |
|\ \ | |/ | ||||||
| * | Issue #21750: Further fixup to be styled like other mock APIs. | Robert Collins | 2015-07-23 | 1 | -36/+43 | |
| | | ||||||
* | | Typo fix in mock.patch. | Robert Collins | 2015-07-17 | 1 | -1/+1 | |
|\ \ | |/ | | | | | Patch from https://github.com/testing-cabal/mock/issues/215 | |||||
| * | Typo fix in mock.patch. | Robert Collins | 2015-07-17 | 1 | -1/+1 | |
| | | | | | | | | Patch from https://github.com/testing-cabal/mock/issues/215 | |||||
* | | Issue #21750: mock_open.read_data can now be read from each instance, as it | Robert Collins | 2015-07-17 | 1 | -33/+37 | |
|\ \ | |/ | | | | | could in Python 3.3. | |||||
| * | Issue #21750: mock_open.read_data can now be read from each instance, as it | Robert Collins | 2015-07-17 | 1 | -33/+37 | |
| | | | | | | | | could in Python 3.3. | |||||
* | | - Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely. | Robert Collins | 2015-07-14 | 1 | -3/+9 | |
|\ \ | |/ | | | | | Patch from Nicola Palumbo and Laurent De Buyst. | |||||
| * | - Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely. | Robert Collins | 2015-07-14 | 1 | -3/+9 | |
| | | | | | | | | Patch from Nicola Palumbo and Laurent De Buyst. | |||||
| * | Issue #23310: Fix MagicMock's initializer to work with __methods__. | Łukasz Langa | 2015-04-14 | 1 | -2/+3 | |
| | | | | | | | | Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim. | |||||
* | | Issue #23661: unittest.mock side_effects can now be exceptions again. | Robert Collins | 2015-07-14 | 1 | -1/+2 | |
| | | | | | | | | This was a regression vs Python 3.4. Patch from Ignacio Rossi | |||||
* | | Issue #23310: Fix MagicMock's initializer to work with __methods__. | Łukasz Langa | 2015-04-14 | 1 | -2/+3 | |
| | | | | | | | | Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim. | |||||
* | | Issue #23568: Add rdivmod support to MagicMock() objects. | Berker Peksag | 2015-03-14 | 1 | -1/+3 | |
|\ \ | |/ | | | | | Patch by Håkan Lövdahl. | |||||
| * | Issue #23568: Add rdivmod support to MagicMock() objects. | Berker Peksag | 2015-03-14 | 1 | -1/+3 | |
| | | | | | | | | Patch by Håkan Lövdahl. | |||||
* | | Issue #23581: Add matmul support to MagicMock. | Berker Peksag | 2015-03-12 | 1 | -1/+1 | |
| | | | | | | | | Patch by Håkan Lövdahl. | |||||
* | | Issue #23326: Removed __ne__ implementations. Since fixing default __ne__ | Serhiy Storchaka | 2015-01-31 | 1 | -4/+0 | |
| | | | | | | | | implementation in issue #21408 they are redundant. | |||||
* | | Issue #22823: Fix typo in unittest/mock.py | Victor Stinner | 2014-12-11 | 1 | -1/+1 | |
| | | ||||||
* | | Issue #22823: Use set literals instead of creating a set from a list. | Serhiy Storchaka | 2014-12-11 | 1 | -16/+15 | |
| | | | | | | | | Fixed an output of sets in examples. | |||||
* | | Closes #21270 : We now override tuple methods in mock.call objects. | Kushal Das | 2014-09-16 | 1 | -0/+6 | |
| | | ||||||
* | | Closes #21256: Printout of keyword args in deterministic order in mock calls. | Kushal Das | 2014-06-09 | 1 | -1/+1 | |
| | | | | | | | | | | Printout of keyword args should be in deterministic order in a mock function call. This will help to write better doctests. | |||||
* | | Removes unused varargs and varkwargs from assert_not_called(). | Kushal Das | 2014-04-16 | 1 | -1/+1 | |
| | | ||||||
* | | Closes Issue 21262: New method assert_not_called for Mock. | Kushal Das | 2014-04-16 | 1 | -0/+8 | |
| | | | | | | | | It raises AssertionError if the mock has been called. | |||||
* | | Closes Issue 21238: New keyword argument `unsafe` to Mock. | Kushal Das | 2014-04-16 | 1 | -2/+6 | |
| | | | | | | | | | | It raises `AttributeError` incase of an attribute startswith assert or assret. | |||||
* | | Merge | Michael Foord | 2014-04-15 | 1 | -5/+10 | |
|\ \ | |/ | ||||||
| * | 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. | |||||
* | | Merge | Kushal Das | 2014-04-15 | 1 | -0/+2 | |
|\ \ | |/ | ||||||
| * | Closes Issue 21222. | Kushal Das | 2014-04-15 | 1 | -0/+2 | |
| | | | | | | | | Passing name keyword argument to mock.create_autospec now works. | |||||
* | | Closes issue 17660. You no longer need to explicitly pass create=True when ↵ | Michael Foord | 2014-04-14 | 1 | -0/+7 | |
|/ | | | | patching builtin names. | |||||
* | 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. |