| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Issue #22138: Fix mock.patch behavior when patching descriptors. Restore | Senthil Kumaran | 2016-01-09 | 1 | -0/+26 |
| | | | | | | | 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 | -0/+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 | -0/+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 | -0/+28 |
| |\ \ | |/ | | | | | | | | | 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 | -0/+28 |
| | | | | | | | | | | | | | 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 | 2 | -3/+25 |
| |\ \ | |/ | |||||
| | * | Issue #21750: Further fixup to be styled like other mock APIs. | Robert Collins | 2015-07-23 | 2 | -3/+25 |
| | | | |||||
| * | | Issue #21750: mock_open.read_data can now be read from each instance, as it | Robert Collins | 2015-07-17 | 2 | -2/+21 |
| |\ \ | |/ | | | | | 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 | 2 | -2/+21 |
| | | | | | | | | | could in Python 3.3. | ||||
| * | | - Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely. | Robert Collins | 2015-07-14 | 1 | -0/+3 |
| |\ \ | |/ | | | | | 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 | -0/+3 |
| | | | | | | | | | Patch from Nicola Palumbo and Laurent De Buyst. | ||||
| | * | Issue #23310: Fix MagicMock's initializer to work with __methods__. | Łukasz Langa | 2015-04-14 | 1 | -0/+15 |
| | | | | | | | | | 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 | -0/+9 |
| | | | | | | | | | 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 | -0/+15 |
| | | | | | | | | | Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim. | ||||
| * | | Issue #23568: Add rdivmod support to MagicMock() objects. | Berker Peksag | 2015-03-14 | 1 | -0/+15 |
| |\ \ | |/ | | | | | Patch by Håkan Lövdahl. | ||||
| | * | Issue #23568: Add rdivmod support to MagicMock() objects. | Berker Peksag | 2015-03-14 | 1 | -0/+15 |
| | | | | | | | | | Patch by Håkan Lövdahl. | ||||
| * | | Issue #23581: Add matmul support to MagicMock. | Berker Peksag | 2015-03-12 | 1 | -0/+11 |
| | | | | | | | | | Patch by Håkan Lövdahl. | ||||
| * | | Closes #21270 : We now override tuple methods in mock.call objects. | Kushal Das | 2014-09-16 | 1 | -0/+10 |
| | | | |||||
| * | | Suppress a couple more DeprecationWarnings in the test suite. | R David Murray | 2014-06-11 | 1 | -1/+1 |
| | | | |||||
| * | | Closes #21256: Printout of keyword args in deterministic order in mock calls. | Kushal Das | 2014-06-09 | 1 | -0/+6 |
| | | | | | | | | | | | Printout of keyword args should be in deterministic order in a mock function call. This will help to write better doctests. | ||||
| * | | Closes Issue 21262: New method assert_not_called for Mock. | Kushal Das | 2014-04-16 | 1 | -0/+9 |
| | | | | | | | | | It raises AssertionError if the mock has been called. | ||||
| * | | Closes Issue 21238: New keyword argument `unsafe` to Mock. | Kushal Das | 2014-04-16 | 1 | -0/+11 |
| | | | | | | | | | | | It raises `AttributeError` incase of an attribute startswith assert or assret. | ||||
| * | | Merge | Michael Foord | 2014-04-15 | 1 | -1/+18 |
| |\ \ | |/ | |||||
| | * | Closes issue 21239. unittest.mock.patch.stopall() did not work ↵ | Michael Foord | 2014-04-15 | 1 | -1/+18 |
| | | | | | | | | | deterministically when the same name was patched multiple times. | ||||
| * | | Merge | Kushal Das | 2014-04-15 | 1 | -0/+4 |
| |\ \ | |/ | |||||
| | * | Closes Issue 21222. | Kushal Das | 2014-04-15 | 1 | -0/+4 |
| | | | | | | | | | 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 | -2/+22 |
| |/ | | | | patching builtin names. | ||||
| * | Issue 17826. Setting an iterable side_effect on a mock created by ↵ | Michael Foord | 2014-04-14 | 1 | -0/+18 |
| | | | | | create_autospec now works | ||||
| * | Issue 20968. unittest.mock.MagicMock now supports division | Michael Foord | 2014-04-14 | 1 | -0/+25 |
| | | |||||
| * | Merge | Michael Foord | 2013-11-23 | 1 | -15/+2 |
| |\ | |||||
| | * | Remove shadowed test | Michael Foord | 2013-09-15 | 1 | -15/+2 |
| | | | |||||
| * | | Issue #19594: Use specific asserts in unittest tests. | Serhiy Storchaka | 2013-11-16 | 4 | -19/+19 |
| |\ \ | |||||
| | * | | Issue #19594: Use specific asserts in unittest tests. | Serhiy Storchaka | 2013-11-16 | 4 | -19/+19 |
| | | | | |||||
| * | | | Adjust comment | Antoine Pitrou | 2013-09-13 | 1 | -1/+1 |
| | | | | |||||
| * | | | Issue #19013: add a __main__ to unittest.test.testmock to ease CLI invocation | Antoine Pitrou | 2013-09-13 | 1 | -0/+18 |
| | | | | |||||
| * | | | Issue #19013: add unittest.main() epilogs to unittest.mock's own test modules | Antoine Pitrou | 2013-09-13 | 3 | -2/+4 |
| | |/ |/| | |||||
| * | | Process DEFAULT values in mock side_effect that returns iterator. | Andrew Svetlov | 2013-04-07 | 1 | -0/+4 |
| |\ \ | |/ | | | | | Patch by Michael Ford. | ||||
| | * | Process DEFAULT values in mock side_effect that returns iterator. | Andrew Svetlov | 2013-04-07 | 1 | -0/+4 |
| | | | | | | | | | Patch by Michael Ford. | ||||
| * | | Closes issue 17467. Add readline and readlines support to ↵ | Michael Foord | 2013-03-20 | 1 | -0/+83 |
| | | | | | | | | | unittest.mock.mock_open | ||||
| * | | Issue #17015: When it has a spec, a Mock object now inspects its signature ↵ | Antoine Pitrou | 2013-02-02 | 2 | -20/+164 |
| |/ | | | | 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 | -0/+7 |
| | | |||||
| * | Adding patch.stopall method to unittest.mock | Michael Foord | 2012-06-10 | 1 | -0/+18 |
| | | |||||
| * | Fix exception when calling reset_mock on a mock created with autospec | Michael Foord | 2012-06-09 | 2 | -0/+15 |
| | | |||||
| * | Closes issue 14634. unittest.mock.create_autospec now supports keyword only ↵ | Michael Foord | 2012-04-21 | 1 | -1/+14 |
| | | | | | arguments. | ||||
| * | Closes issue 14636. mock objects raise exceptions from an iterable side_effect | Michael Foord | 2012-04-21 | 1 | -0/+10 |
| | | |||||
| * | Make unittest.mock.create_autospec resilient against AttributeError on ↵ | Michael Foord | 2012-04-13 | 1 | -0/+23 |
| | | | | | original object | ||||
| * | unittest.mock.PropertyMock return value and attributes are now standard ↵ | Michael Foord | 2012-04-13 | 1 | -0/+11 |
| | | | | | MagicMocks | ||||
| * | unittest.mock: a mock created by patch with a spec as the list argument will ↵ | Michael Foord | 2012-03-25 | 1 | -0/+20 |
| | | | | | be callable if __call__ is in the spec | ||||
| * | Support subclassing unittest.mock._patch and fix various obscure bugs around ↵ | Michael Foord | 2012-03-25 | 1 | -7/+102 |
| | | | | | patcher spec arguments | ||||
| * | unittest.mock.MagicMock objects are now unorderable by default | Michael Foord | 2012-03-25 | 1 | -0/+13 |
| | | |||||
