Serhiy Storchaka
|
5665bc5980
|
Issue #19594: Use specific asserts in unittest tests.
|
2013-11-17 00:12:21 +02:00 |
Antoine Pitrou
|
d5d0bc35ad
|
Issue #19352: Fix unittest discovery when a module can be reached through several paths (e.g. under Debian/Ubuntu with virtualenv).
|
2013-10-23 19:11:29 +02:00 |
Ezio Melotti
|
b5bc353b88
|
#18741: fix more typos. Patch by Févry Thibault.
|
2013-08-17 16:11:40 +03:00 |
Ezio Melotti
|
d51914c6c1
|
#18663: document that assertAlmostEqual also works when the values are equal and add tests.
|
2013-08-11 13:04:50 +03:00 |
Łukasz Langa
|
6ae466732c
|
clean the environment from pre-existing PYTHONWARNINGS for test_warnings
|
2013-04-24 01:49:52 +02:00 |
R David Murray
|
5e2f593145
|
#14971: Use class method name, not function.__name__, during unittest discovery.
|
2013-04-11 08:55:45 -04:00 |
Andrew Svetlov
|
8b2cd75bdd
|
Process DEFAULT values in mock side_effect that returns iterator.
Patch by Michael Ford.
|
2013-04-07 16:42:24 +03:00 |
Michael Foord
|
b71b8ec7b1
|
Merge
|
2013-02-11 13:29:58 +00:00 |
Michael Foord
|
f78f5b11f6
|
Correction to issue 17052 fix
|
2013-02-11 13:20:52 +00:00 |
Michael Foord
|
a23a39c07d
|
Merge
|
2013-02-11 00:18:07 +00:00 |
Michael Foord
|
8fd396bd22
|
Issue 17502: unittest discovery should use self.testLoader
|
2013-02-11 00:04:24 +00:00 |
Michael Foord
|
d1da29c99d
|
Merge
|
2013-01-29 23:14:59 +00:00 |
Michael Foord
|
6debd76939
|
Closes issue 15505. unittest.installHandler and non-callable signal handlers.
|
2013-01-29 23:07:57 +00:00 |
Michael Foord
|
28d591ceef
|
Closes issue 15323. Improve failure message of Mock.assert_called_once_with
|
2012-09-28 16:15:22 +01:00 |
Michael Foord
|
8ef1fcecc5
|
Merge
|
2012-09-28 15:19:45 +01:00 |
Michael Foord
|
7a1901f861
|
Closes issue #12376 : Pass on parameters in unittest.TextTestResult.__init__ super call
|
2012-09-28 14:14:03 +01:00 |
Michael Foord
|
f7c4158057
|
Adding patch.stopall method to unittest.mock
|
2012-06-10 20:36:32 +01:00 |
Michael Foord
|
75963643b1
|
Fix exception when calling reset_mock on a mock created with autospec
|
2012-06-09 17:31:59 +01:00 |
Antoine Pitrou
|
f99983dacb
|
Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test class that doesn't inherit from TestCase (i.e. a mixin).
|
2012-04-25 14:58:17 +02:00 |
Antoine Pitrou
|
b05ac864f0
|
Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test class that doesn't inherit from TestCase (i.e. a mixin).
|
2012-04-25 14:56:46 +02:00 |
Michael Foord
|
3af125a4aa
|
Closes issue 14634. unittest.mock.create_autospec now supports keyword only arguments.
|
2012-04-21 18:22:28 +01:00 |
Michael Foord
|
2cd48738ba
|
Closes issue 14636. mock objects raise exceptions from an iterable side_effect
|
2012-04-21 15:52:11 +01:00 |
Michael Foord
|
656319e58d
|
Make unittest.mock.create_autospec resilient against AttributeError on original object
|
2012-04-13 17:39:16 +01:00 |
Michael Foord
|
c287062fcf
|
unittest.mock.PropertyMock return value and attributes are now standard MagicMocks
|
2012-04-13 16:57:22 +01:00 |
Michael Foord
|
e58a562d93
|
unittest.mock: a mock created by patch with a spec as the list argument will be callable if __call__ is in the spec
|
2012-03-25 19:53:18 +01:00 |
Michael Foord
|
50a8c0ef5d
|
Support subclassing unittest.mock._patch and fix various obscure bugs around patcher spec arguments
|
2012-03-25 18:57:58 +01:00 |
Michael Foord
|
313f85f0ca
|
unittest.mock.MagicMock objects are now unorderable by default
|
2012-03-25 18:16:07 +01:00 |
Michael Foord
|
a74b3aa0cc
|
Remove more Python 2 compatibility cruft from unittest.mock
|
2012-03-14 14:40:22 -07:00 |
Michael Foord
|
ebff097937
|
And another one... mock import fix.
|
2012-03-14 13:01:31 -07:00 |
Michael Foord
|
83a16856ee
|
Fix another mock import
|
2012-03-14 12:58:46 -07:00 |
Michael Foord
|
0ca9acd1dd
|
Fix import failure in mock test
|
2012-03-14 12:38:06 -07:00 |
Michael Foord
|
345266aa7e
|
PEP 417: Adding unittest.mock
|
2012-03-14 12:24:34 -07:00 |
Michael Foord
|
5f99ced092
|
Refactor unittest command line handling to always use optparse
|
2012-03-12 13:53:04 -07:00 |
Florent Xicluna
|
c53ae58954
|
Drop unused import in unittest package.
|
2011-11-04 08:25:54 +01:00 |
Benjamin Peterson
|
b6ffa7980f
|
test that TestCase doesn't get cycles
|
2011-07-14 12:48:25 -05:00 |
Ezio Melotti
|
b4dc2502ad
|
Issue #10775: assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex now accept a keyword argument 'msg' when used as context managers. Initial patch by Winston Ewert.
|
2011-05-06 15:01:41 +03:00 |
Ezio Melotti
|
9490af2150
|
#11763: merge with 3.2.
|
2011-04-27 10:21:51 +03:00 |
Ezio Melotti
|
edd117fd27
|
#11763: merge with 3.1.
|
2011-04-27 10:20:38 +03:00 |
Ezio Melotti
|
0f535013c5
|
#11282: add back the fail* methods and assertDictContainsSubset.
|
2011-04-03 18:02:13 +03:00 |
Ezio Melotti
|
b7af620747
|
#11282: merge with 3.2.
|
2011-04-03 17:39:19 +03:00 |
Ezio Melotti
|
361467e522
|
#11282: the fail* methods will stay around a few more versions.
|
2011-04-03 17:37:58 +03:00 |
Ezio Melotti
|
45763d0d12
|
Merge with 3.2.
|
2011-03-20 15:34:28 +02:00 |
Ezio Melotti
|
60c3c9f918
|
Save a copy of sys.warnoptions in test_program.
|
2011-03-20 15:31:26 +02:00 |
Michael Foord
|
42ec7cb105
|
Issue #10979. unittest stdout buffering now works with class and module setup and teardown.
|
2011-03-17 13:44:18 -04:00 |
Victor Stinner
|
98dbba5d20
|
Issue #3080: Use repr() to format the module name on error
|
2011-03-14 15:15:47 -04:00 |
Michael Foord
|
e9ff2ef204
|
Closes issue 10979. unittest buffering now works with class and module setup and teardown
|
2011-03-17 13:58:22 -04:00 |
Michael Foord
|
1341bb0019
|
Closes issue 11407. TestCase.run returns the result object used or created
|
2011-03-14 19:01:46 -04:00 |
Georg Brandl
|
2cebdd4865
|
Remove unittest methods scheduled for removal in 3.3 -- makes the unittest test suite pass again.
|
2011-02-20 11:18:09 +00:00 |
Victor Stinner
|
cae969e70a
|
fix test_unittest: ignore DeprecationWarning on assertDictContainsSubset()
|
2011-01-03 23:56:12 +00:00 |
Michael Foord
|
32e1d8340c
|
Enable unittest.TestCase to be instantiated without providing a method name.
Changed unittestgui to show number of discovered tests in the status bar.
|
2011-01-03 17:00:11 +00:00 |