Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Adding patch.stopall method to unittest.mock | Michael Foord | 2012-06-10 | 2 | -2/+38 |
| | |||||
* | Fix exception when calling reset_mock on a mock created with autospec | Michael Foord | 2012-06-09 | 3 | -0/+18 |
| | |||||
* | 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 | ||||
* | Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test ↵ | Antoine Pitrou | 2012-04-25 | 2 | -1/+16 |
|\ | | | | | | | class that doesn't inherit from TestCase (i.e. a mixin). | ||||
| * | Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test ↵ | Antoine Pitrou | 2012-04-25 | 2 | -1/+16 |
| | | | | | | | | class that doesn't inherit from TestCase (i.e. a mixin). | ||||
* | | 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 | 2 | -4/+22 |
| | | | | | | | | arguments. | ||||
* | | Closes issue 14636. mock objects raise exceptions from an iterable side_effect | Michael Foord | 2012-04-21 | 2 | -3/+17 |
| | | |||||
* | | 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 | 2 | -2/+29 |
| | | | | | | | | original object | ||||
* | | unittest.mock.PropertyMock return value and attributes are now standard ↵ | Michael Foord | 2012-04-13 | 2 | -0/+14 |
| | | | | | | | | 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 | 2 | -1/+28 |
| | | | | | | | | 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 | 2 | -32/+151 |
| | | | | | | | | patcher spec arguments | ||||
* | | unittest.mock.MagicMock objects are now unorderable by default | Michael Foord | 2012-03-25 | 2 | -9/+26 |
| | | |||||
* | | 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 | 2 | -25/+6 |
| | | |||||
* | | Remove Python 2 compatibility cruft from unittest.mock | Michael Foord | 2012-03-14 | 1 | -5/+3 |
| | | |||||
* | | And another one... mock import fix. | Michael Foord | 2012-03-14 | 1 | -2/+2 |
| | | |||||
* | | Fix another mock import | Michael Foord | 2012-03-14 | 1 | -1/+1 |
| | | |||||
* | | Fix import failure in mock test | Michael Foord | 2012-03-14 | 1 | -1/+1 |
| | | |||||
* | | PEP 417: Adding unittest.mock | Michael Foord | 2012-03-14 | 11 | -0/+6682 |
| | | |||||
* | | Merge | Michael Foord | 2012-03-13 | 1 | -4/+9 |
|\ \ | |/ | |||||
| * | Fix unittest test discovery for Jython | Michael Foord | 2012-03-13 | 1 | -4/+9 |
| | | |||||
* | | Move adding unittest test discovery command line options into their own method. | Michael Foord | 2012-03-12 | 1 | -5/+7 |
| | | |||||
* | | Refactor unittest command line handling to always use optparse | Michael Foord | 2012-03-12 | 2 | -59/+32 |
| | | |||||
* | | merge from 3.2 testFnNames is assigned twice. | Senthil Kumaran | 2011-11-24 | 1 | -2/+1 |
|\ \ | |/ | |||||
| * | testFnNames is assigned twice. | Senthil Kumaran | 2011-11-24 | 1 | -2/+1 |
| | | |||||
* | | Drop unused import in unittest package. | Florent Xicluna | 2011-11-04 | 4 | -5/+1 |
| | | |||||
* | | Merge 3.2 | Florent Xicluna | 2011-10-28 | 2 | -3/+3 |
|\ \ | |/ | |||||
| * | Closes #13258: Use callable() built-in in the standard library. | Florent Xicluna | 2011-10-28 | 2 | -3/+3 |
| | | |||||
* | | #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). | Ezio Melotti | 2011-09-28 | 1 | -2/+2 |
| | | |||||
* | | test that TestCase doesn't get cycles | Benjamin Peterson | 2011-07-14 | 1 | -0/+9 |
| | | |||||
* | | merge 3.2 (#12544) | Benjamin Peterson | 2011-07-13 | 1 | -22/+3 |
|\ \ | |/ | |||||
| * | this can be done without a custom dict (also fixes #12544) | Benjamin Peterson | 2011-07-13 | 1 | -22/+3 |
| | | |||||
* | | Issue #10775: assertRaises, assertRaisesRegex, assertWarns, and ↵ | Ezio Melotti | 2011-05-06 | 2 | -33/+120 |
| | | | | | | | | assertWarnsRegex now accept a keyword argument 'msg' when used as context managers. Initial patch by Winston Ewert. | ||||
* | | #11763: merge with 3.2. | Ezio Melotti | 2011-04-27 | 2 | -0/+44 |
|\ \ | |/ | |||||
| * | #11763: merge with 3.1. | Ezio Melotti | 2011-04-27 | 2 | -0/+44 |
| | | |||||
* | | #11282: add back the fail* methods and assertDictContainsSubset. | Ezio Melotti | 2011-04-03 | 5 | -9/+111 |
| | | |||||
* | | #11282: merge with 3.2. | Ezio Melotti | 2011-04-03 | 2 | -6/+3 |
|\ \ | |/ | |||||
| * | #11282: the fail* methods will stay around a few more versions. | Ezio Melotti | 2011-04-03 | 2 | -6/+3 |
| | | |||||
* | | Merge with 3.2. | Ezio Melotti | 2011-03-20 | 1 | -1/+1 |
|\ \ | |/ |