24 Commits (698e9a8211c46ed5dc93e5cd7026ea05dec2f373)

Author SHA1 Message Date
Dong-hee Na 698e9a8211
bpo-44017: Update test_contextlib_async not to emit DeprecationWarn (GH-25918) 5 years ago
Matthew Suozzo dccdc500f9
bpo-43478: Restrict use of Mock objects as specs (GH-25326) 5 years ago
Karthikeyan Singaravelan e553f204bf
bpo-39915: Ensure await_args_list is updated according to the order in which coroutines were awaited (GH-18924) 6 years ago
Chris Withers db5e86adbc
Get mock coverage back to 100% (GH-18228) 6 years ago
Chris Withers a46575a8f2
Clarify and fix assertions that mocks have not been awaited (GH-18196) 6 years ago
Chris Withers c7dd3c7d87
Use relative imports in mock and its tests to help backporting (GH-18197) 6 years ago
Matthew Kokotovich 62865f4532 bpo-39082: Allow AsyncMock to correctly patch static/class methods (GH-18116) 6 years ago
Karthikeyan Singaravelan 54f743eb31 Improve test coverage for AsyncMock. (GH-17906) 6 years ago
Jason Fried 046442d02b bpo-38857: AsyncMock fix for awaitable values and StopIteration fix [3.8] (GH-17269) 6 years ago
Adam Johnson 892221bfa0 bpo-38839: Fix some unused functions in tests (GH-17189) 6 years ago
Lisa Roach 3667e1ee6c
bpo-38163: Child mocks detect their type as sync or async (GH-16471) 6 years ago
Lisa Roach 25e115ec00
bpo-38161: Removes _AwaitEvent from AsyncMock. (GH-16443) 6 years ago
Lisa Roach 9a7d951950
bpo-38108: Makes mock objects inherit from Base (GH-16060) 6 years ago
Samuel Freilich 2180f6b058 bpo-36871: Avoid duplicated 'Actual:' in assertion message (GH-16361) 6 years ago
Samuel Freilich b5a7a4f0c2 bpo-36871: Handle spec errors in assert_has_calls (GH-16005) 6 years ago
Lisa Roach ef04851775
bpo-38136: Updates await_count and call_count to be different things (GH-16192) 6 years ago
Lisa Roach 8b03f943c3
bpo-38093: Correctly returns AsyncMock for async subclasses. (GH-15947) 6 years ago
Elizabeth Uselton d6a9d17d8b bpo-37555: Update _CallList.__contains__ to respect ANY (#14700) 6 years ago
Lisa Roach f1a297acb6
bpo-37251: Removes __code__ check from _is_async_obj. (GH-15830) 6 years ago
Xtreak aa51508274 Fix assertions regarding magic methods function body that was not executed (GH-14154) 6 years ago
Xtreak 0ae022c6a4 bpo-37075: Fix string concatenation in assert_has_awaits error message (GH-13616) 7 years ago
Xtreak 436c2b0d67 bpo-36996: Handle async functions when mock.patch is used as a decorator (GH-13562) 7 years ago
Xtreak ff6b2e66b1 bpo-37047: Refactor AsyncMock setup logic for autospeccing (GH-13574) 7 years ago
Lisa Roach 77b3b7701a
bpo-26467: Adds AsyncMock for asyncio Mock library support (GH-9296) 7 years ago