summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test/testmock
Commit message (Expand)AuthorAgeFilesLines
* bpo-41403: Improve error message for invalid mock target (GH-30833)Irit Katriel2022-01-231-2/+7
* bpo-46111: Fix unittest tests in optimized mode (GH-30163)Serhiy Storchaka2021-12-171-1/+2
* Fix typos in the Lib directory (GH-28775)Christian Clauss2021-10-061-1/+1
* bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300)Nikita Sobolev2021-09-141-0/+61
* bpo-44017: Update test_contextlib_async not to emit DeprecationWarn (GH-25918)Dong-hee Na2021-05-061-2/+1
* bpo-43478: Restrict use of Mock objects as specs (GH-25326)Matthew Suozzo2021-04-102-4/+26
* bpo-41877: Check for misspelled speccing arguments (GH-23737)vabr-g2020-12-141-0/+52
* bpo-41877: Improve docs for assert misspellings check in mock (GH-23729)vabr-g2020-12-101-1/+1
* bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call it...idanw2062020-12-061-0/+10
* bpo-41877 Check for asert, aseert, assrt in mocks (GH-23165)vabr-g2020-11-051-1/+10
* bpo-39966: Revert "bpo-25597: Ensure wraps' return value is used for magic me...Karthikeyan Singaravelan2020-04-281-6/+10
* bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351)Serhiy Storchaka2020-04-111-1/+1
* bpo-39915: Ensure await_args_list is updated according to the order in which ...Karthikeyan Singaravelan2020-03-111-0/+11
* Get mock coverage back to 100% (GH-18228)Chris Withers2020-01-293-41/+31
* Clarify and fix assertions that mocks have not been awaited (GH-18196)Chris Withers2020-01-272-27/+30
* Use relative imports in mock and its tests to help backporting (GH-18197)Chris Withers2020-01-272-71/+73
* bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock ...Karthikeyan Singaravelan2020-01-271-0/+47
* bpo-38932: Mock fully resets child objects on reset_mock(). (GH-17409)Vegard Stikbakke2020-01-251-1/+13
* bpo-39082: Allow AsyncMock to correctly patch static/class methods (GH-18116)Matthew Kokotovich2020-01-251-0/+23
* bpo-38473: Handle autospecced functions and methods used with attach_mock (GH...Karthikeyan Singaravelan2020-01-241-0/+29
* Fix `mock.patch.dict` to be stopped with `mock.patch.stopall` (#17606)Mario Corchero2020-01-241-0/+50
* bpo-24928: Add test case for patch.dict using OrderedDict (GH -11437)Emmanuel Arias2020-01-241-0/+20
* Improve test coverage for AsyncMock. (GH-17906)Karthikeyan Singaravelan2020-01-151-4/+49
* 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-16/+58
* bpo-38839: Fix some unused functions in tests (GH-17189)Adam Johnson2019-11-191-0/+1
* bpo-38163: Child mocks detect their type as sync or async (GH-16471)Lisa Roach2019-09-301-25/+42
* bpo-38161: Removes _AwaitEvent from AsyncMock. (GH-16443)Lisa Roach2019-09-301-3/+1
* bpo-38108: Makes mock objects inherit from Base (GH-16060)Lisa Roach2019-09-292-21/+37
* bpo-36871: Avoid duplicated 'Actual:' in assertion message (GH-16361)Samuel Freilich2019-09-242-16/+30
* bpo-36871: Handle spec errors in assert_has_calls (GH-16005)Samuel Freilich2019-09-242-0/+40
* bpo-38136: Updates await_count and call_count to be different things (GH-16192)Lisa Roach2019-09-242-18/+181
* bpo-38093: Correctly returns AsyncMock for async subclasses. (GH-15947)Lisa Roach2019-09-202-49/+149
* bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166)Abraham Toriz Cruz2019-09-171-0/+8
* bpo-37555: Update _CallList.__contains__ to respect ANY (#14700)Elizabeth Uselton2019-09-132-2/+51
* bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ c...blhsing2019-09-111-0/+20
* bpo-37251: Removes __code__ check from _is_async_obj. (GH-15830)Lisa Roach2019-09-101-0/+15
* bpo-37212: Preserve keyword argument order in unittest.mock.call and error me...Xtreak2019-09-091-3/+3
* Fix assertions regarding magic methods function body that was not executed (G...Xtreak2019-09-091-9/+2
* Fix typos mostly in comments, docs and test names (GH-15209)Min ho Kim2019-08-301-3/+3
* bpo-36871: Ensure method signature is used when asserting mock calls to a met...Xtreak2019-08-291-0/+48
* bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)Serhiy Storchaka2019-08-081-0/+8
* Fix typos in comments, docs and test names (#15018)Min ho Kim2019-07-301-1/+1
* bpo-21478: Record calls to parent when autospecced objects are used as child ...Xtreak2019-07-221-0/+37
* bpo-37075: Fix string concatenation in assert_has_awaits error message (GH-13...Xtreak2019-05-291-2/+4
* bpo-32299: Return patched dict when using patch.dict as a context manager (GH...Mario Corchero2019-05-281-0/+7
* bpo-36996: Handle async functions when mock.patch is used as a decorator (GH-...Xtreak2019-05-281-0/+16
* bpo-37047: Refactor AsyncMock setup logic for autospeccing (GH-13574)Xtreak2019-05-271-2/+61
* bpo-37008: make mock_open handle able to honor next() (GH-13492)Damien Nadé2019-05-232-0/+28
* bpo-26467: Adds AsyncMock for asyncio Mock library support (GH-9296)Lisa Roach2019-05-202-2/+552