summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/mock.py
Commit message (Expand)AuthorAgeFilesLines
* gh-104745: Limit starting a patcher more than once without stopping it (#126649)Red4Ru2024-11-131-0/+9
* gh-124176: Add special support for dataclasses to `create_autospec` (#124429)sobolevn2024-09-271-6/+16
* gh-124234: Improve docs for `Mock.reset_mock` (#124237)sobolevn2024-09-261-2/+4
* gh-123934: Fix `MagicMock` not to reset magic method return values (#124038)sobolevn2024-09-191-1/+12
* Remove unused variable in `MagicMixin._mock_set_magics` (#124092)sobolevn2024-09-141-2/+0
* gh-122858: Deprecate `asyncio.iscoroutinefunction` (#122875)Wulian2024-08-111-2/+2
* gh-117765: Improve documentation for `mocker.patch.dict` (#121755)Dominic H2024-07-151-1/+2
* gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospe...Nikita Sobolev2024-06-191-7/+6
* gh-65454: avoid triggering call to a PropertyMock in NonCallableMock.__setatt...blhsing2024-06-111-0/+3
* gh-119600: mock: do not access attributes of original when new_callable is se...Robert Collins2024-06-111-5/+9
* Remove almost all unpaired backticks in docstrings (#119231)Geoffrey Thomas2024-05-221-1/+1
* gh-90848: Fixed create_autospec ignoring configure_mock style kwargs (#118163)infohash2024-05-021-8/+12
* gh-75988: Fix issues with autospec ignoring wrapped object (#115223)infohash2024-03-081-2/+11
* gh-113569: Display calls in Mock.assert_has_calls failure when empty (GH-113573)wookie1842024-01-041-4/+4
* gh-113407: Fix import of unittest.mock when CPython is built without docstrin...Serhiy Storchaka2023-12-241-5/+11
* gh-111019: Align expected and actual titles in test output (#111020)James2023-10-181-3/+3
* Remove unused branches from mock module (#106617)Chris Withers2023-07-111-6/+1
* GH-61215: threadingmock: Remove unused branch for `timeout` (#106591)Mario Corchero2023-07-101-3/+1
* gh-61215: Rename `wait_until_any_call` to `wait_until_any_call_with` (#106414)Mario Corchero2023-07-041-1/+1
* gh-61215: New mock to wait for multi-threaded events to happen (#16094)Mario Corchero2023-07-031-0/+94
* bpo-44185: Added close() to mock_open __exit__ (#26902)Samet YASLAN2023-06-111-0/+4
* gh-94924: support `inspect.iscoroutinefunction` in `create_autospec(async_def...Thomas Grainger2023-06-091-2/+30
* gh-85934: Use getattr_static when adding mock spec (#22209)melanie witt2023-05-231-1/+7
* gh-102978: Fix mock.patch function signatures for class and staticmethod deco...Tomas R2023-04-131-0/+6
* 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