summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/mock.py
Commit message (Expand)AuthorAgeFilesLines
* bpo-39915: Ensure await_args_list is updated according to the order in which ...Karthikeyan Singaravelan2020-03-111-1/+1
* Get mock coverage back to 100% (GH-18228)Chris Withers2020-01-291-13/+4
* bpo-39485: fix corner-case in method-detection of mock (GH-18252)Carl Friedrich Bolz-Tereick2020-01-291-5/+1
* Use relative imports in mock and its tests to help backporting (GH-18197)Chris Withers2020-01-271-8/+9
* bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock ...Karthikeyan Singaravelan2020-01-271-0/+6
* bpo-38932: Mock fully resets child objects on reset_mock(). (GH-17409)Vegard Stikbakke2020-01-251-1/+1
* bpo-37955: correct mock.patch docs with respect to the returned type (GH-15521)Paulo Henrique Silva2020-01-251-1/+2
* bpo-39082: Allow AsyncMock to correctly patch static/class methods (GH-18116)Matthew Kokotovich2020-01-251-0/+2
* bpo-38473: Handle autospecced functions and methods used with attach_mock (GH...Karthikeyan Singaravelan2020-01-241-0/+4
* Fix `mock.patch.dict` to be stopped with `mock.patch.stopall` (#17606)Mario Corchero2020-01-241-2/+17
* remove unused __version__ from mock.py (#17977)Chris Withers2020-01-131-2/+0
* bpo-38669: patch.object now raises a helpful error (GH17034)Elena Oat2019-12-081-0/+4
* bpo-38857: AsyncMock fix for awaitable values and StopIteration fix [3.8] (GH...Jason Fried2019-11-211-25/+37
* bpo-38163: Child mocks detect their type as sync or async (GH-16471)Lisa Roach2019-09-301-2/+3
* bpo-38161: Removes _AwaitEvent from AsyncMock. (GH-16443)Lisa Roach2019-09-301-36/+0
* bpo-38108: Makes mock objects inherit from Base (GH-16060)Lisa Roach2019-09-291-36/+19
* bpo-36871: Avoid duplicated 'Actual:' in assertion message (GH-16361)Samuel Freilich2019-09-241-2/+2
* bpo-36871: Handle spec errors in assert_has_calls (GH-16005)Samuel Freilich2019-09-241-5/+21
* bpo-38136: Updates await_count and call_count to be different things (GH-16192)Lisa Roach2019-09-241-0/+10
* bpo-38093: Correctly returns AsyncMock for async subclasses. (GH-15947)Lisa Roach2019-09-201-6/+12
* bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166)Abraham Toriz Cruz2019-09-171-1/+1
* bpo-38100: Fix spelling error in unittest.mock code (GH-16168)marcoramirezmx2019-09-161-3/+3
* bpo-38122: minor fixes to AsyncMock spec handling (GH-16099)Michael Foord2019-09-131-11/+8
* bpo-37555: Update _CallList.__contains__ to respect ANY (#14700)Elizabeth Uselton2019-09-131-11/+28
* bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ c...blhsing2019-09-111-0/+6
* bpo-37251: Removes __code__ check from _is_async_obj. (GH-15830)Lisa Roach2019-09-101-3/+2
* docs: Add references to AsyncMock in unittest.mock.patch (#13681)Mario Corchero2019-09-091-4/+5
* bpo-37212: Preserve keyword argument order in unittest.mock.call and error me...Xtreak2019-09-091-1/+1
* bpo-36743: __get__ is sometimes called without the owner argument (#12992)Raymond Hettinger2019-08-291-1/+1
* bpo-35946: Improve assert_called_with documentation (GH-11796)Rémi Lapeyre2019-08-291-1/+1
* bpo-36871: Ensure method signature is used when asserting mock calls to a met...Xtreak2019-08-291-1/+35
* bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)Serhiy Storchaka2019-08-081-3/+1
* bpo-21478: Record calls to parent when autospecced objects are used as child ...Xtreak2019-07-221-11/+16
* bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka2019-06-011-48/+34
* bpo-37075: Fix string concatenation in assert_has_awaits error message (GH-13...Xtreak2019-05-291-5/+5
* bpo-32299: Return patched dict when using patch.dict as a context manager (GH...Mario Corchero2019-05-281-0/+1
* bpo-36996: Handle async functions when mock.patch is used as a decorator (GH-...Xtreak2019-05-281-27/+57
* bpo-37047: Refactor AsyncMock setup logic for autospeccing (GH-13574)Xtreak2019-05-271-21/+38
* bpo-37008: make mock_open handle able to honor next() (GH-13492)Damien Nadé2019-05-231-0/+6
* Fix RuntimeWarning in unittest.mock asyncio example (GH-13449)Xtreak2019-05-211-1/+1
* bpo-26467: Adds AsyncMock for asyncio Mock library support (GH-9296)Lisa Roach2019-05-201-17/+389
* bpo-24758: Improve the error msg for unittest.mock.Mock()'s unsafe mode (#12991)Zackery Spytz2019-05-081-1/+2
* bpo-31855: unittest.mock.mock_open() results now respects the argument of rea...Rémi Lapeyre2019-05-071-25/+14
* Mock 100% coverage (GH-13045)Chris Withers2019-05-011-56/+5
* remove jython support from unittest.mock (GH#13033)Chris Withers2019-05-011-9/+2
* Don't report deleted attributes in __dir__ (GH#10148)Mario Corchero2019-04-301-2/+4
* bpo-23078: Add support for {class,static}method to mock.create_autospec() (G...Xtreak2019-04-221-1/+3
* bpo-36593: Fix isinstance check for Mock objects with spec executed under tra...Xtreak2019-04-131-1/+1
* bpo-36366: Return None on stopping unstarted patch object (GH-12472)Xtreak2019-03-281-1/+1
* bpo-21269: Provide args and kwargs attributes on mock call objects GH11807Kumar Akshay2019-03-221-0/+16