summaryrefslogtreecommitdiff
path: root/mock/mock.py
AgeCommit message (Expand)Author
2020-03-13Revert "Upgrade python/mock to 4.0.2"android-r-preview-4android-r-preview-3android-r-preview-2Herbert Xue
2020-03-11bpo-39915: Ensure await_args_list is updated according to the order in which ...Karthikeyan Singaravelan
2020-01-29bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ c...blhsing
2020-01-29Get mock coverage back to 100% (GH-18228)Chris Withers
2020-01-29bpo-39485: fix corner-case in method-detection of mock (GH-18252)Carl Friedrich Bolz-Tereick
2020-01-29Clarify and fix assertions that mocks have not been awaited (GH-18196)Chris Withers
2020-01-29bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock ...Karthikeyan Singaravelan
2020-01-29bpo-38932: Mock fully resets child objects on reset_mock(). (GH-17409)Vegard Stikbakke
2020-01-29bpo-37955: correct mock.patch docs with respect to the returned type (GH-15521)Paulo Henrique Silva
2020-01-29bpo-39082: Allow AsyncMock to correctly patch static/class methods (GH-18116)Matthew Kokotovich
2020-01-29flip more to iscoroutinefunction backportChris Withers
2020-01-29bpo-38473: Handle autospecced functions and methods used with attach_mock (GH...Karthikeyan Singaravelan
2020-01-29Fix `mock.patch.dict` to be stopped with `mock.patch.stopall` (#17606)Mario Corchero
2020-01-29remove unused __version__ from mock.py (#17977)Chris Withers
2020-01-29bpo-38669: patch.object now raises a helpful error (GH17034)Elena Oat
2020-01-29bpo-38857: AsyncMock fix for awaitable values and StopIteration fix [3.8] (GH...Jason Fried
2020-01-29bpo-38163: Child mocks detect their type as sync or async (GH-16471)Lisa Roach
2020-01-29bpo-38161: Removes _AwaitEvent from AsyncMock. (GH-16443)Lisa Roach
2020-01-29bpo-38108: Makes mock objects inherit from Base (GH-16060)Lisa Roach
2020-01-29bpo-36871: Avoid duplicated 'Actual:' in assertion message (GH-16361)Samuel Freilich
2020-01-29bpo-36871: Handle spec errors in assert_has_calls (GH-16005)Samuel Freilich
2020-01-29bpo-38136: Updates await_count and call_count to be different things (GH-16192)Lisa Roach
2020-01-29bpo-38093: Correctly returns AsyncMock for async subclasses. (GH-15947)Lisa Roach
2020-01-29bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166)Abraham Toriz Cruz
2020-01-29bpo-38100: Fix spelling error in unittest.mock code (GH-16168)marcoramirezmx
2020-01-29bpo-38122: minor fixes to AsyncMock spec handling (GH-16099)Michael Foord
2020-01-29bpo-37555: Update _CallList.__contains__ to respect ANY (#14700)Elizabeth Uselton
2020-01-24backport fixed iscoroutinefunction from Python 3.8 Chris Withers
2020-01-24bpo-37251: Removes __code__ check from _is_async_obj. (GH-15830)Lisa Roach
2020-01-24docs: Add references to AsyncMock in unittest.mock.patch (#13681)Mario Corchero
2020-01-24bpo-37212: Preserve keyword argument order in unittest.mock.call and error me...Xtreak
2020-01-24bpo-36743: __get__ is sometimes called without the owner argument (#12992)Raymond Hettinger
2020-01-24bpo-35946: Improve assert_called_with documentation (GH-11796)Rémi Lapeyre
2020-01-24bpo-36871: Ensure method signature is used when asserting mock calls to a met...Xtreak
2020-01-24bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)Serhiy Storchaka
2020-01-24bpo-21478: Record calls to parent when autospecced objects are used as child ...Xtreak
2020-01-24PyPy's object class has no __sizeof__.Chris Withers
2020-01-13new cut from cpython as at 4a686504eb2bbf69adf78077458508a7ba131667Chris Withers
2020-01-13move __version__ to __init__.py so we don't have to modify the mock.py from c...Chris Withers
2019-05-07Preparing for 3.0.5 release.Chris Withers
2019-05-07bpo-31855: unittest.mock.mock_open() results now respects the argument of rea...Rémi Lapeyre
2019-05-04Preparing for 3.0.4 release.Chris Withers
2019-05-02Preparing for 3.0.3 release.Chris Withers
2019-05-02Use basestring when checking for dictionary patching.Chris Withers
2019-05-02Preparing for 3.0.2 release.Chris Withers
2019-05-02Preparing for 3.0.1 release.Chris Withers
2019-05-02Preparing for 3.0.0 release.Chris Withers
2019-05-02Not used, see 637abcba241a69a1d9a8acf240855a6ed158cb64.Chris Withers
2019-05-02make magic mocks work on pypy againChris Withers
2019-05-01Mock 100% coverage (GH-13045)Chris Withers