cpython/Lib/unittest/test
Miss Islington (bot) e9b187a2bf bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) (GH-14903)
* Clear name and parent of mock in autospecced objects used with attach_mock

* Add NEWS entry

* Fix reversed order of comparison

* Test child and standalone function calls

* Use a helper function extracting mock to avoid code duplication and refactor tests.
(cherry picked from commit 7397cda997)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
2019-07-22 09:04:07 +01:00
..
testmock bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) (GH-14903) 2019-07-22 09:04:07 +01:00
__init__.py
__main__.py
_test_warnings.py
dummy.py
support.py
test_assertions.py
test_break.py
test_case.py
test_discovery.py
test_functiontestcase.py
test_loader.py bpo-35767: Fix unittest.loader to allow partials as test_functions (GH-11600) (#11662) 2019-01-24 18:30:59 +01:00
test_program.py
test_result.py
test_runner.py
test_setups.py
test_skipping.py
test_suite.py