summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/mock.py
Commit message (Expand)AuthorAgeFilesLines
* gh-96127: Fix `inspect.signature` call on mocks (#96335)Nikita Sobolev2023-01-071-1/+9
* gh-100690: [mock] hide `ATTRIB_DENY_LIST` and make it immutable (#100819)Nikita Sobolev2023-01-071-2/+6
* gh-100690: Raise an AttributeError when the assert_ prefix is forgotten when ...Christian Klein2023-01-061-4/+10
* gh-100739: Respect mock spec when checking for unsafe prefixes (#100740)Christian Klein2023-01-041-1/+1
* gh-100287: Fix unittest.mock.seal with AsyncMock (#100496)Shantanu2022-12-241-4/+4
* gh-83076: 3.8x speed improvement in (Async)Mock instantiation (#100252)Carl Meyer2022-12-231-16/+22
* gh-98086: Now ``patch.dict`` can decorate async functions (#98095)Nikita Sobolev2022-11-111-0/+18
* gh-91803: Mock - fix error when using autospec methods with seal (#92213)andrei kulakov2022-11-071-0/+1
* gh-98624 Add mutex to unittest.mock.NonCallableMock (#98688)noah-weingarden2022-10-281-28/+38
* gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (#94050)Mehdi ABAAKOUK2022-06-301-0/+4
* bpo-46852: Remove the float.__set_format__() method (GH-31585)Victor Stinner2022-02-251-1/+1
* Restrict use of Mock objects as specs (GH-31090)Matthew Suozzo2022-02-031-1/+9
* bpo-41403: Improve error message for invalid mock target (GH-30833)Irit Katriel2022-01-231-3/+3
* bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300)Nikita Sobolev2021-09-141-6/+7
* bpo-45010: Remove support of special method __div__ in unittest.mock (GH-27965)Serhiy Storchaka2021-08-261-1/+1
* bpo-44686 replace unittest.mock._importer with pkgutil.resolve_name (GH-18544)Thomas Grainger2021-07-211-23/+4
* bpo-44534: fix wording and docstring sync in unittest.Mock GH27000Jack DeVries2021-07-051-0/+5
* Fix typos in multiple files (GH-26689)Binbin2021-06-131-1/+1
* bpo-43478: Restrict use of Mock objects as specs (GH-25326)Matthew Suozzo2021-04-101-4/+38
* bpo-41877: Check for misspelled speccing arguments (GH-23737)vabr-g2020-12-141-8/+31
* bpo-41877: Improve docs for assert misspellings check in mock (GH-23729)vabr-g2020-12-101-2/+3
* bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call it...idanw2062020-12-061-1/+1
* bpo-41877 Check for asert, aseert, assrt in mocks (GH-23165)vabr-g2020-11-051-2/+2
* bpo-39966: Revert "bpo-25597: Ensure wraps' return value is used for magic me...Karthikeyan Singaravelan2020-04-281-6/+0
* bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351)Serhiy Storchaka2020-04-111-48/+26
* 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