Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
830b43d03cc47a27a22a50d777f23c8e60820867
/
Lib
/
unittest
/
test
/
testmock
830b43d
bpo-36593: Fix isinstance check for Mock objects with spec executed under tracing (GH-12790)
by Xtreak
· 5 years ago
02b84cb
bpo-36366: Return None on stopping unstarted patch object (GH-12472)
by Xtreak
· 5 years ago
b0df45e
bpo-21269: Provide args and kwargs attributes on mock call objects GH11807
by Kumar Akshay
· 5 years ago
9c3f284
Autospec functions should propagate mock calls to parent GH-11273
by Xtreak
· 6 years ago
a875ea5
bpo-35512: Resolve string target to patch.dict decorator during function call GH#12000
by Xtreak
· 6 years ago
2bdd585
bpo-35500: align expected and actual calls on mock.assert_called_with error message. (GH-11804)
by Susan Su
· 6 years ago
222d303
bpo-20239: Allow repeated deletion of unittest.mock.Mock attributes (#11057)
by Pablo Galindo
· 6 years ago
5a718e9
Add test for double patching instance methods (#11085)
by Anthony Sottile
· 6 years ago
f7fa62e
bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11048)
by Xtreak
· 6 years ago
f05df0a
bpo-35330: Don't call the wrapped object if `side_effect` is set (GH10973)
by Mario Corchero
· 6 years ago
3cf7438
bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock tests (GH-8520)
by Anirudha Bose
· 6 years ago
2042852
Remove unused function in `testmock/support.py` (GH-10975)
by Mario Corchero
· 6 years ago
e63e617
bpo-35357: Add _mock_ prefix to name/parent/from_kall attributes of _Call/_MagicProxy. (#10873)
by Andrew Dunai
· 6 years ago
8ca0fa9
bpo-35226: Fix equality for nested unittest.mock.call objects. (#10555)
by Chris Withers
· 6 years ago
c667b09
bpo-32153: Add unit test for create_autospec with partial function returned in getattr (#10398)
by Xtreak
· 6 years ago
edeca92
bpo-31177: Skip deleted attributes while calling reset_mock (GH-9302)
by Xtreak
· 6 years ago
47d9424
bpo-35047, unittest.mock: Better error messages on assert_called_xxx failures (GH-10090)
by Petter Strandmark
· 6 years ago
6c83d9f
bpo-35022: unittest.mock.MagicMock now also supports __fspath__ (GH-9960)
by Max Bélanger
· 6 years ago
2087023
bpo-32933: Implement __iter__ method on mock_open() (GH-5974)
by Tony Flury
· 6 years ago
6c4fab0
bpo-33516: Add support for __round__ in MagicMock (GH-6880)
by John Reese
· 6 years ago
53f7a7c
bpo-32297: Few misspellings found in Python source code comments. (#4803)
by Mike
· 7 years ago
552be9d
bpo-30541: Add new method to seal mocks (GH61923)
by Mario Corchero
· 7 years ago
49b2734
Spelling fixes (#2902)
by Ville Skyttä
· 7 years ago
856cbcc
bpo-29403: Fix mock's broken autospec behavior on method-bound builtin functions (GH-3)
by Aaron Gallagher
· 7 years ago
5aa3856
bpo-28961: Address my comments from earlier code review (#305)
by Berker Peksag
· 8 years ago
19dea2c
Issue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.
by Serhiy Storchaka
· 8 years ago
a203360
Issue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.
by Serhiy Storchaka
· 8 years ago
362f058
Issue #28735: Fixed the comparison of mock.MagickMock with mock.ANY.
by Serhiy Storchaka
· 8 years ago
d9c956f
Issue #20804: The unittest.mock.sentinel attributes now preserve their
by Serhiy Storchaka
· 8 years ago
84b6fb0
Fix unittest.mock._Call: don't ignore name
by Victor Stinner
· 8 years ago
ac5084b
Fixes issue28380: unittest.mock Mock autospec functions now properly support
by Gregory P. Smith
· 8 years ago
0be894b
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
by Martin Panter
· 8 years ago
15f44ab
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
by Raymond Hettinger
· 8 years ago
d0d24fd
Issue #26750: unittest.mock.create_autospec() now works properly for
by Gregory P. Smith
· 8 years ago
9854789
Issue #26750: unittest.mock.create_autospec() now works properly
by Gregory P. Smith
· 8 years ago
9cd39a1
Issue #21271: Adds new keyword only parameters in reset_mock call
by Kushal Das
· 8 years ago
c85dd85
Issue #26807: mock_open 'files' no longer error on readline at end of file.
by Robert Collins
· 8 years ago
9549a3e
Issue #26807: mock_open 'files' no longer error on readline at end of file.
by Robert Collins
· 8 years ago
e437a10
Issue #23277: Remove unused imports in tests.
by Serhiy Storchaka
· 8 years ago
1e8ee9b
Issue #23277: Remove unused sys and os imports
by Berker Peksag
· 8 years ago
5a6c018
Issue #25195: Fix a regression in mock.MagicMock
by Berker Peksag
· 8 years ago
ce91387
Issue #25195: Fix a regression in mock.MagicMock
by Berker Peksag
· 8 years ago
2c2a4e6
Add Mock.assert_called()
by Victor Stinner
· 9 years ago
81bc927
Issue #22138: Fix mock.patch behavior when patching descriptors. Restore
by Senthil Kumaran
· 9 years ago
29bf4d4
Issue #24857: Comparing call_args to a long sequence now correctly returns a
by Berker Peksag
· 9 years ago
3fc536f
Issue #24857: Comparing call_args to a long sequence now correctly returns a
by Berker Peksag
· 9 years ago
86b34da
Issue #23004: mock_open() now reads binary data correctly when the type of read_data is bytes.
by Berker Peksag
· 9 years ago
ca647ef
Issue #21750: Further fixup to be styled like other mock APIs.
by Robert Collins
· 9 years ago
5329aaa
Issue #21750: mock_open.read_data can now be read from each instance, as it
by Robert Collins
· 9 years ago
b37f43f
- Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
by Robert Collins
· 9 years ago
abfaecd
Issue #23004: mock_open() now reads binary data correctly when the type of read_data is bytes.
by Berker Peksag
· 9 years ago
88ba360
Issue #21750: Further fixup to be styled like other mock APIs.
by Robert Collins
· 9 years ago
4838717
Issue #21750: mock_open.read_data can now be read from each instance, as it
by Robert Collins
· 9 years ago
76d508b
- Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
by Robert Collins
· 9 years ago
f58f88c
Issue #23661: unittest.mock side_effects can now be exceptions again.
by Robert Collins
· 9 years ago
a468db9
Issue #23310: Fix MagicMock's initializer to work with __methods__.
by Łukasz Langa
· 9 years ago
5f6684e
Issue #23310: Fix MagicMock's initializer to work with __methods__.
by Łukasz Langa
· 9 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
a37b958
Closes #21270 : We now override tuple methods in mock.call objects.
by Kushal Das
· 10 years ago
130a566
Suppress a couple more DeprecationWarnings in the test suite.
by R David Murray
· 10 years ago
047f14c
Closes #21256: Printout of keyword args in deterministic order in mock calls.
by Kushal Das
· 10 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
· 10 years ago
484f8a8
Closes Issue 21222.
by Kushal Das
· 10 years ago
8af9db3
Closes Issue 21262: New method assert_not_called for Mock.
by Kushal Das
· 10 years ago
8c14534
Closes Issue 21238: New keyword argument `unsafe` to Mock.
by Kushal Das
· 10 years ago
15f2d17
Merge
by Michael Foord
· 10 years ago
5d1f6c3
Merge
by Kushal Das
· 10 years ago
fddcfa2
Closes issue 17660. You no longer need to explicitly pass create=True when patching builtin names.
by Michael Foord
· 10 years ago
01bafdc
Issue 17826. Setting an iterable side_effect on a mock created by create_autospec now works
by Michael Foord
· 10 years ago
d2623d7
Issue 20968. unittest.mock.MagicMock now supports division
by Michael Foord
· 10 years ago
514afeb
Merge
by Michael Foord
· 11 years ago
bc39869
Issue #19594: Use specific asserts in unittest tests.
by Serhiy Storchaka
· 11 years ago
5665bc5
Issue #19594: Use specific asserts in unittest tests.
by Serhiy Storchaka
· 11 years ago
468ec34
Remove shadowed test
by Michael Foord
· 11 years ago
a19b1a6
Adjust comment
by Antoine Pitrou
· 11 years ago
4b3c58c
Issue #19013: add a __main__ to unittest.test.testmock to ease CLI invocation
by Antoine Pitrou
· 11 years ago
356bdeb
Issue #19013: add unittest.main() epilogs to unittest.mock's own test modules
by Antoine Pitrou
· 11 years ago
8ab1e51
Process DEFAULT values in mock side_effect that returns iterator.
by Andrew Svetlov
· 11 years ago
8b2cd75
Process DEFAULT values in mock side_effect that returns iterator.
by Andrew Svetlov
· 11 years ago
04cbe0c
Closes issue 17467. Add readline and readlines support to unittest.mock.mock_open
by Michael Foord
· 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
· 12 years ago
28d591c
Closes issue 15323. Improve failure message of Mock.assert_called_once_with
by Michael Foord
· 12 years ago
f7c4158
Adding patch.stopall method to unittest.mock
by Michael Foord
· 12 years ago
7596364
Fix exception when calling reset_mock on a mock created with autospec
by Michael Foord
· 12 years ago
3af125a
Closes issue 14634. unittest.mock.create_autospec now supports keyword only arguments.
by Michael Foord
· 12 years ago
2cd4873
Closes issue 14636. mock objects raise exceptions from an iterable side_effect
by Michael Foord
· 12 years ago
656319e
Make unittest.mock.create_autospec resilient against AttributeError on original object
by Michael Foord
· 12 years ago
c287062
unittest.mock.PropertyMock return value and attributes are now standard MagicMocks
by Michael Foord
· 12 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
· 12 years ago
50a8c0e
Support subclassing unittest.mock._patch and fix various obscure bugs around patcher spec arguments
by Michael Foord
· 12 years ago
313f85f
unittest.mock.MagicMock objects are now unorderable by default
by Michael Foord
· 12 years ago
a74b3aa
Remove more Python 2 compatibility cruft from unittest.mock
by Michael Foord
· 13 years ago
ebff097
And another one... mock import fix.
by Michael Foord
· 13 years ago
83a1685
Fix another mock import
by Michael Foord
· 13 years ago
0ca9acd
Fix import failure in mock test
by Michael Foord
· 13 years ago
345266a
PEP 417: Adding unittest.mock
by Michael Foord
· 13 years ago