Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clean the environment from pre-existing PYTHONWARNINGS for test_warnings | Łukasz Langa | 2013-04-23 | 1 | -0/+12 |
|\ | |||||
| * | clean the environment from pre-existing PYTHONWARNINGS for test_warnings | Łukasz Langa | 2013-04-23 | 1 | -0/+12 |
| | | |||||
* | | Merge #14971: Use class method name, not function.__name__, during unittest ↵ | R David Murray | 2013-04-11 | 1 | -0/+16 |
|\ \ | |/ | | | | | discovery. | ||||
| * | #14971: Use class method name, not function.__name__, during unittest discovery. | R David Murray | 2013-04-11 | 1 | -0/+16 |
| | | |||||
* | | 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. | ||||
* | | Fix bug in TestResult.addSubTest() | Antoine Pitrou | 2013-03-29 | 1 | -0/+34 |
| | | |||||
* | | #17510: avoid using deprecated assertEquals method in test_program. Patch ↵ | Ezio Melotti | 2013-03-23 | 1 | -2/+2 |
| | | | | | | | | by Daniel Black. | ||||
* | | Issue #16997: unittest.TestCase now provides a subTest() context manager to ↵ | Antoine Pitrou | 2013-03-20 | 5 | -15/+261 |
| | | | | | | | | procedurally generate, in an easy way, small test instances. | ||||
* | | Closes issue 17467. Add readline and readlines support to ↵ | Michael Foord | 2013-03-20 | 1 | -0/+83 |
| | | | | | | | | unittest.mock.mock_open | ||||
* | | Closes issue 16709. unittest test discovery sorts test files for consistent ↵ | Michael Foord | 2013-03-19 | 1 | -2/+5 |
| | | | | | | | | test ordering | ||||
* | | #16935: unittest now counts the module as skipped if it raises SkipTest, ↵ | Ezio Melotti | 2013-03-01 | 1 | -4/+23 |
| | | | | | | | | instead of counting it as an error. Patch by Zachary Ware. | ||||
* | | Issue #15132: Allow a list for the defaultTest argument of unittest.TestProgram | Petri Lehtinen | 2013-02-23 | 1 | -0/+35 |
| | | | | | | | | Patch by Jyrki Pulliainen | ||||
* | | Merge. Closes issue 17052. | Michael Foord | 2013-02-11 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Merge | Michael Foord | 2013-02-11 | 1 | -1/+1 |
| |\ | |||||
| | * | Correction to issue 17052 fix | Michael Foord | 2013-02-11 | 1 | -1/+1 |
| | | | |||||
* | | | Merge. Closes issue 17052. | Michael Foord | 2013-02-11 | 1 | -0/+14 |
|\ \ \ | |/ / | |||||
| * | | Merge | Michael Foord | 2013-02-11 | 1 | -0/+14 |
| |\ \ | | |/ | |||||
| | * | Issue 17502: unittest discovery should use self.testLoader | Michael Foord | 2013-02-11 | 1 | -0/+14 |
| | | | |||||
* | | | 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. | ||||
* | | Merge | Michael Foord | 2013-01-29 | 1 | -0/+32 |
|\ \ | |/ | |||||
| * | Closes issue 15505. unittest.installHandler and non-callable signal handlers. | Michael Foord | 2013-01-29 | 1 | -0/+32 |
| | | |||||
* | | Closes issue 15323. Improve failure message of Mock.assert_called_once_with | Michael Foord | 2012-09-28 | 1 | -0/+7 |
| | | |||||
* | | Merge | Michael Foord | 2012-09-28 | 1 | -0/+13 |
|\ \ | |/ | |||||
| * | Closes issue #12376 : Pass on parameters in unittest.TextTestResult.__init__ ↵ | Michael Foord | 2012-09-28 | 1 | -0/+13 |
| | | | | | | | | super call | ||||
* | | 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 |
| | | |||||
* | | Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test ↵ | Antoine Pitrou | 2012-04-25 | 1 | -0/+15 |
|\ \ | |/ | | | | | 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 | 1 | -0/+15 |
| | | | | | | | | class that doesn't inherit from TestCase (i.e. a mixin). | ||||
* | | 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 |
| | | |||||
* | | Remove more Python 2 compatibility cruft from unittest.mock | Michael Foord | 2012-03-14 | 1 | -14/+2 |
| | | |||||
* | | 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 | 10 | -0/+4531 |
| | | |||||
* | | Refactor unittest command line handling to always use optparse | Michael Foord | 2012-03-12 | 1 | -17/+0 |
| | | |||||
* | | Drop unused import in unittest package. | Florent Xicluna | 2011-11-04 | 1 | -1/+0 |
| | | |||||
* | | test that TestCase doesn't get cycles | Benjamin Peterson | 2011-07-14 | 1 | -0/+9 |
| | | |||||
* | | Issue #10775: assertRaises, assertRaisesRegex, assertWarns, and ↵ | Ezio Melotti | 2011-05-06 | 1 | -0/+73 |
| | | | | | | | | 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 | 1 | -0/+36 |
|\ \ | |/ | |||||
| * | #11763: merge with 3.1. | Ezio Melotti | 2011-04-27 | 1 | -0/+36 |
| | | |||||
* | | #11282: add back the fail* methods and assertDictContainsSubset. | Ezio Melotti | 2011-04-03 | 4 | -4/+75 |
| | | |||||
* | | #11282: merge with 3.2. | Ezio Melotti | 2011-04-03 | 1 | -4/+2 |
|\ \ | |/ | |||||
| * | #11282: the fail* methods will stay around a few more versions. | Ezio Melotti | 2011-04-03 | 1 | -4/+2 |
| | |