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
|
d38e6e516d
|
Closes issue 16064. No longer hard code executable name in unittest help output.
|
2012-09-28 15:14:37 +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 |
Nick Coghlan
|
0b43bcf528
|
Close #14857: fix regression in references to PEP 3135 implicit __class__ closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue
|
2012-05-27 18:17:07 +10: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
|
9cf5c9d85e
|
Remove incorrect comment
|
2012-04-21 18:32:56 +01: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
|
0682a0c0a9
|
Minor docstring / docs corrections for unittest.mock
|
2012-04-13 20:51:20 +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
|
aa8ec7e076
|
Fix unittest.mock.patch docstring
|
2012-03-28 15:41:28 +01:00 |
Michael Foord
|
54b3db8c84
|
Minor unittest.mock.patch doc / docstring improvement
|
2012-03-28 15:08:08 +01:00 |
Michael Foord
|
0340ea77d1
|
unittest.mock: removed another bit of Python 2 only code
|
2012-03-25 23:27:12 +01:00 |
Michael Foord
|
944e02d055
|
Adding unittest.mock documentation
|
2012-03-25 23:12:55 +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
|
fb5d0a78cf
|
unittest.mock: remove another piece of Python 2 specific code
|
2012-03-25 19:35:22 +01:00 |
Michael Foord
|
1ab27c6fde
|
Remove more Python 2 code from unittest.mock (obsolete function attributes)
|
2012-03-25 19:16:10 +01:00 |
Michael Foord
|
0dccf657b5
|
Minor changes to the unittest.mock.mock_open helper
|
2012-03-25 19:11:50 +01:00 |
Michael Foord
|
99254730b2
|
Addition of docstrings to unittest.mock helpers
|
2012-03-25 19:07:33 +01:00 |
Michael Foord
|
a74561a56d
|
unittest.mock: set file_spec on first use
|
2012-03-25 19:03:13 +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
|
d7c65e2807
|
Removed XXX from unittest.mock docstring and switch to a nicer try...except...finally
|
2012-03-14 14:56:54 -07:00 |
Michael Foord
|
a74b3aa0cc
|
Remove more Python 2 compatibility cruft from unittest.mock
|
2012-03-14 14:40:22 -07:00 |
Michael Foord
|
c17adf4151
|
Remove Python 2 compatibility cruft from unittest.mock
|
2012-03-14 13:30:29 -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
|
5738e4f3df
|
Merge
|
2012-03-13 00:14:19 -07:00 |
Michael Foord
|
e01c62cd6b
|
Fix unittest test discovery for Jython
|
2012-03-13 00:09:54 -07:00 |
Michael Foord
|
b36c70c9ff
|
Move adding unittest test discovery command line options into their own method.
|
2012-03-12 15:24:46 -07:00 |
Michael Foord
|
5f99ced092
|
Refactor unittest command line handling to always use optparse
|
2012-03-12 13:53:04 -07:00 |
Senthil Kumaran
|
5d036e1ccf
|
merge from 3.2 testFnNames is assigned twice.
|
2011-11-25 02:09:24 +08:00 |
Senthil Kumaran
|
f27be5c60b
|
testFnNames is assigned twice.
|
2011-11-25 02:08:39 +08:00 |
Florent Xicluna
|
c53ae58954
|
Drop unused import in unittest package.
|
2011-11-04 08:25:54 +01:00 |
Florent Xicluna
|
5d1155c08e
|
Closes #13258: Use callable() built-in in the standard library.
|
2011-10-28 14:45:05 +02:00 |
Florent Xicluna
|
aabbda5354
|
Merge 3.2
|
2011-10-28 14:52:29 +02:00 |
Ezio Melotti
|
d8b509b192
|
#13012: use splitlines(keepends=True/False) instead of splitlines(0/1).
|
2011-09-28 17:37:55 +03:00 |
Benjamin Peterson
|
b6ffa7980f
|
test that TestCase doesn't get cycles
|
2011-07-14 12:48:25 -05:00 |
Benjamin Peterson
|
0850638957
|
merge 3.2 (#12544)
|
2011-07-12 19:23:43 -05:00 |
Benjamin Peterson
|
34b2b263db
|
this can be done without a custom dict (also fixes #12544)
|
2011-07-12 19:21:42 -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 |