Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | | |||||
* | | Merge with 3.2. | Ezio Melotti | 2011-03-20 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Save a copy of sys.warnoptions in test_program. | Ezio Melotti | 2011-03-20 | 1 | -1/+1 |
| | | |||||
* | | Issue #3080: Use repr() to format the module name on error | Victor Stinner | 2011-03-14 | 1 | -2/+2 |
| | | |||||
* | | Closes issue 10979. unittest buffering now works with class and module setup ↵ | Michael Foord | 2011-03-17 | 1 | -0/+67 |
|\ \ | |/ | | | | | and teardown | ||||
| * | Issue #10979. unittest stdout buffering now works with class and module ↵ | Michael Foord | 2011-03-17 | 1 | -0/+67 |
| | | | | | | | | setup and teardown. | ||||
* | | Closes issue 11407. TestCase.run returns the result object used or created | Michael Foord | 2011-03-14 | 1 | -4/+39 |
| | | |||||
* | | Remove unittest methods scheduled for removal in 3.3 -- makes the unittest ↵ | Georg Brandl | 2011-02-20 | 4 | -74/+4 |
|/ | | | | test suite pass again. | ||||
* | fix test_unittest: ignore DeprecationWarning on assertDictContainsSubset() | Victor Stinner | 2011-01-03 | 2 | -24/+30 |
| | |||||
* | Enable unittest.TestCase to be instantiated without providing a method name. | Michael Foord | 2011-01-03 | 1 | -0/+10 |
| | | | | Changed unittestgui to show number of discovered tests in the status bar. | ||||
* | Issue 10786: unittest.TextTestRunner default stream no longer bound at ↵ | Michael Foord | 2010-12-30 | 1 | -0/+17 |
| | | | | import time | ||||
* | Add direct tests for the util functions. | Raymond Hettinger | 2010-12-24 | 1 | -1/+13 |
| | |||||
* | Improve diff for assertCountEqual() to actually show the differing counts. | Raymond Hettinger | 2010-12-24 | 1 | -6/+0 |
| | | | | | | | | | | | | | | | | | | New output looks like this: Traceback (most recent call last): File "test.py", line 5, in test_ce self.assertCountEqual('abracadabra xx', 'simsalabim xx') AssertionError: Element counts were not equal: Expected 5, got 2: 'a' Expected 2, got 1: 'b' Expected 0, got 2: 'i' Expected 0, got 2: 'm' Expected 0, got 1: 'l' Expected 0, got 2: 's' Expected 1, got 0: 'c' Expected 1, got 0: 'd' Expected 2, got 0: 'r' | ||||
* | Add test for r87454. | Raymond Hettinger | 2010-12-24 | 1 | -0/+3 |
| | |||||
* | Deprecate assertDictContainsSubset() | Raymond Hettinger | 2010-12-21 | 1 | -1/+2 |
| | |||||
* | Improvement to fix for issue 9926 to allow TestResult to be reused. | Michael Foord | 2010-12-19 | 1 | -1/+6 |
| | |||||
* | Fix minor issue in implementation of issue 10470. | Michael Foord | 2010-12-19 | 2 | -0/+14 |
| | |||||
* | Issue 10611. Issue 9857. Improve the way exception handling, including test ↵ | Michael Foord | 2010-12-19 | 3 | -23/+99 |
| | | | | skipping, is done inside TestCase.run | ||||
* | Use lowercase true/false in assertTrue/assertFalse messages. | Ezio Melotti | 2010-12-18 | 1 | -4/+4 |
| | |||||
* | #10273: Remove a "Matches" that I missed in r86910. Thanks to RDM for ↵ | Ezio Melotti | 2010-12-10 | 1 | -4/+4 |
| | | | | noticing it. | ||||
* | Correct comment in unittest test | Michael Foord | 2010-12-04 | 1 | -1/+1 |
| | |||||
* | Issue 10620: Specifying test modules by path instead of module name to ↵ | Michael Foord | 2010-12-04 | 1 | -0/+79 |
| | | | | 'python -m unittest' | ||||
* | Issue 7911: unittest.TestCase.longMessage defaults to True for improved ↵ | Michael Foord | 2010-12-03 | 1 | -1/+1 |
| | | | | failure messages by default |