Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
c75340a8fda52007855ca143513d2252c8cb1574
/
Lib
/
unittest
/
mock.py
d9c956f
Issue #20804: The unittest.mock.sentinel attributes now preserve their
by Serhiy Storchaka
· 9 years ago
cd992bb
Merge 3.6
by Victor Stinner
· 9 years ago
84b6fb0
Fix unittest.mock._Call: don't ignore name
by Victor Stinner
· 9 years ago
161a4dd
Issue #28919: Simplify _copy_func_details() in unittest.mock
by Berker Peksag
· 9 years ago
ac5084b
Fixes issue28380: unittest.mock Mock autospec functions now properly support
by Gregory P. Smith
· 9 years ago
c35a32f
Issue #26750: use inspect.isdatadescriptor instead of our own
by Gregory P. Smith
· 9 years ago
d4583d7
Issue #26750: use inspect.isdatadescriptor instead of our own
by Gregory P. Smith
· 9 years ago
d0d24fd
Issue #26750: unittest.mock.create_autospec() now works properly for
by Gregory P. Smith
· 9 years ago
9854789
Issue #26750: unittest.mock.create_autospec() now works properly
by Gregory P. Smith
· 9 years ago
702f4f5
Issue #23804: Merge spelling and NEWS fixes from 3.5
by Martin Panter
· 9 years ago
204bf0b
English spelling and grammar fixes
by Martin Panter
· 9 years ago
6c85091
Issue #23641: Added __getnewargs_ex__ to the list of special mock attributes.
by Serhiy Storchaka
· 9 years ago
5943ea7
Issue #23641: Added __getnewargs_ex__ to the list of special mock attributes.
by Serhiy Storchaka
· 9 years ago
9cd39a1
Issue #21271: Adds new keyword only parameters in reset_mock call
by Kushal Das
· 9 years ago
c85dd85
Issue #26807: mock_open 'files' no longer error on readline at end of file.
by Robert Collins
· 9 years ago
9549a3e
Issue #26807: mock_open 'files' no longer error on readline at end of file.
by Robert Collins
· 9 years ago
5a6c018
Issue #25195: Fix a regression in mock.MagicMock
by Berker Peksag
· 9 years ago
ce91387
Issue #25195: Fix a regression in mock.MagicMock
by Berker Peksag
· 9 years ago
2c2a4e6
Add Mock.assert_called()
by Victor Stinner
· 9 years ago
121edbf
Issue25347 - Format the error message output of mock's assert_has_calls method.
by Senthil Kumaran
· 10 years ago
81bc927
Issue #22138: Fix mock.patch behavior when patching descriptors. Restore
by Senthil Kumaran
· 10 years ago
29bf4d4
Issue #24857: Comparing call_args to a long sequence now correctly returns a
by Berker Peksag
· 10 years ago
3fc536f
Issue #24857: Comparing call_args to a long sequence now correctly returns a
by Berker Peksag
· 10 years ago
86b34da
Issue #23004: mock_open() now reads binary data correctly when the type of read_data is bytes.
by Berker Peksag
· 10 years ago
ca647ef
Issue #21750: Further fixup to be styled like other mock APIs.
by Robert Collins
· 10 years ago
92b3e065
Typo fix in mock.patch.
by Robert Collins
· 10 years ago
5329aaa
Issue #21750: mock_open.read_data can now be read from each instance, as it
by Robert Collins
· 10 years ago
b37f43f
- Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
by Robert Collins
· 10 years ago
abfaecd
Issue #23004: mock_open() now reads binary data correctly when the type of read_data is bytes.
by Berker Peksag
· 10 years ago
88ba360
Issue #21750: Further fixup to be styled like other mock APIs.
by Robert Collins
· 10 years ago
1a80081
Typo fix in mock.patch.
by Robert Collins
· 10 years ago
4838717
Issue #21750: mock_open.read_data can now be read from each instance, as it
by Robert Collins
· 10 years ago
76d508b
- Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
by Robert Collins
· 10 years ago
f58f88c
Issue #23661: unittest.mock side_effects can now be exceptions again.
by Robert Collins
· 10 years ago
a468db9
Issue #23310: Fix MagicMock's initializer to work with __methods__.
by Łukasz Langa
· 10 years ago
5f6684e
Issue #23310: Fix MagicMock's initializer to work with __methods__.
by Łukasz Langa
· 10 years ago
7aaa859
Issue #23568: Add rdivmod support to MagicMock() objects.
by Berker Peksag
· 10 years ago
a785dec
Issue #23568: Add rdivmod support to MagicMock() objects.
by Berker Peksag
· 10 years ago
9bd8af7
Issue #23581: Add matmul support to MagicMock.
by Berker Peksag
· 10 years ago
08448a1
Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
by Serhiy Storchaka
· 11 years ago
eb1a995
Issue #22823: Fix typo in unittest/mock.py
by Victor Stinner
· 11 years ago
c02d188
Issue #22823: Use set literals instead of creating a set from a list.
by Serhiy Storchaka
· 11 years ago
a37b958
Closes #21270 : We now override tuple methods in mock.call objects.
by Kushal Das
· 11 years ago
047f14c
Closes #21256: Printout of keyword args in deterministic order in mock calls.
by Kushal Das
· 11 years ago
ebc1a30
Closes issue 21239. unittest.mock.patch.stopall() did not work deterministically when the same name was patched multiple times.
by Michael Foord
· 11 years ago
484f8a8
Closes Issue 21222.
by Kushal Das
· 11 years ago
68290f4
Removes unused varargs and varkwargs from assert_not_called().
by Kushal Das
· 11 years ago
8af9db3
Closes Issue 21262: New method assert_not_called for Mock.
by Kushal Das
· 11 years ago
8c14534
Closes Issue 21238: New keyword argument `unsafe` to Mock.
by Kushal Das
· 11 years ago
15f2d17
Merge
by Michael Foord
· 11 years ago
5d1f6c3
Merge
by Kushal Das
· 11 years ago
fddcfa2
Closes issue 17660. You no longer need to explicitly pass create=True when patching builtin names.
by Michael Foord
· 11 years ago
01bafdc
Issue 17826. Setting an iterable side_effect on a mock created by create_autospec now works
by Michael Foord
· 11 years ago
d2623d7
Issue 20968. unittest.mock.MagicMock now supports division
by Michael Foord
· 11 years ago
5c66189
Issue #20189: Four additional builtin types (PyTypeObject,
by Larry Hastings
· 12 years ago
8ab1e51
Process DEFAULT values in mock side_effect that returns iterator.
by Andrew Svetlov
· 12 years ago
8b2cd75
Process DEFAULT values in mock side_effect that returns iterator.
by Andrew Svetlov
· 12 years ago
89e6b31
#17504: merge with 3.3.
by Ezio Melotti
· 12 years ago
31a7835
#17504: remove duplicated sentence. Patch by Radu Voicilas.
by Ezio Melotti
· 12 years ago
04cbe0c
Closes issue 17467. Add readline and readlines support to unittest.mock.mock_open
by Michael Foord
· 12 years ago
8b53559
Merge with 3.3, issue #17047: remove doubled words added in 3.3,
by Terry Jan Reedy
· 12 years ago
0f84764
Issue #17047: remove doubled words added in 3.3
by Terry Jan Reedy
· 12 years ago
5c64df7
Issue #17015: When it has a spec, a Mock object now inspects its signature when matching calls, so that arguments can be matched positionally or by name.
by Antoine Pitrou
· 13 years ago
28d591c
Closes issue 15323. Improve failure message of Mock.assert_called_once_with
by Michael Foord
· 13 years ago
f7c4158
Adding patch.stopall method to unittest.mock
by Michael Foord
· 13 years ago
7596364
Fix exception when calling reset_mock on a mock created with autospec
by Michael Foord
· 13 years ago
0b43bcf
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
by Nick Coghlan
· 13 years ago
9cf5c9d
Remove incorrect comment
by Michael Foord
· 13 years ago
3af125a
Closes issue 14634. unittest.mock.create_autospec now supports keyword only arguments.
by Michael Foord
· 13 years ago
2cd4873
Closes issue 14636. mock objects raise exceptions from an iterable side_effect
by Michael Foord
· 13 years ago
0682a0c
Minor docstring / docs corrections for unittest.mock
by Michael Foord
· 13 years ago
656319e
Make unittest.mock.create_autospec resilient against AttributeError on original object
by Michael Foord
· 13 years ago
c287062
unittest.mock.PropertyMock return value and attributes are now standard MagicMocks
by Michael Foord
· 13 years ago
aa8ec7e
Fix unittest.mock.patch docstring
by Michael Foord
· 13 years ago
54b3db8
Minor unittest.mock.patch doc / docstring improvement
by Michael Foord
· 13 years ago
0340ea7
unittest.mock: removed another bit of Python 2 only code
by Michael Foord
· 13 years ago
944e02d
Adding unittest.mock documentation
by Michael Foord
· 13 years ago
e58a562
unittest.mock: a mock created by patch with a spec as the list argument will be callable if __call__ is in the spec
by Michael Foord
· 13 years ago
fb5d0a7
unittest.mock: remove another piece of Python 2 specific code
by Michael Foord
· 13 years ago
1ab27c6
Remove more Python 2 code from unittest.mock (obsolete function attributes)
by Michael Foord
· 13 years ago
0dccf65
Minor changes to the unittest.mock.mock_open helper
by Michael Foord
· 13 years ago
9925473
Addition of docstrings to unittest.mock helpers
by Michael Foord
· 13 years ago
a74561a
unittest.mock: set file_spec on first use
by Michael Foord
· 13 years ago
50a8c0e
Support subclassing unittest.mock._patch and fix various obscure bugs around patcher spec arguments
by Michael Foord
· 13 years ago
313f85f
unittest.mock.MagicMock objects are now unorderable by default
by Michael Foord
· 13 years ago
d7c65e2
Removed XXX from unittest.mock docstring and switch to a nicer try...except...finally
by Michael Foord
· 13 years ago
a74b3aa
Remove more Python 2 compatibility cruft from unittest.mock
by Michael Foord
· 13 years ago
c17adf4
Remove Python 2 compatibility cruft from unittest.mock
by Michael Foord
· 13 years ago
345266a
PEP 417: Adding unittest.mock
by Michael Foord
· 13 years ago