…to a method (GH13261) * Fix call_matcher for mock when using methods * Add NEWS entry * Use None check and convert doctest to unittest * Use better name for mock in tests. Handle _SpecState when the attribute was not accessed and add tests. * Use reset_mock instead of reinitialization. Change inner class constructor signature for check * Reword comment regarding call object lookup logic (cherry picked from commit c961278) Co-authored-by: Xtreak <tir.karthi@gmail.com>
|
@tirkarthi and @cjw296: Status check is done, and it's a success ✅ . |
|
@tirkarthi and @cjw296: Status check is done, and it's a success ✅ . |
|
@tirkarthi and @cjw296: Status check is done, and it's a success ✅ . |
Fix call_matcher for mock when using methods
Add NEWS entry
Use None check and convert doctest to unittest
Use better name for mock in tests. Handle _SpecState when the attribute was not accessed and add tests.
Use reset_mock instead of reinitialization. Change inner class constructor signature for check
Reword comment regarding call object lookup logic
(cherry picked from commit c961278)
Co-authored-by: Xtreak tir.karthi@gmail.com
https://bugs.python.org/issue36871