[issue35330] When using mock to wrap an existing object, side_effect requires return_value
Karthikeyan Singaravelan
report at bugs.python.org
Wed Nov 28 10:01:36 EST 2018
Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:
Thanks @mariocj89 for the explanation. I just got to the docs part about side_effect and return_value precedence. I am curious to know about the behavior as well and at least this can be added as a test as I see only around 3 tests for side_effect and there is no test for wraps behavior in this report I assume given that there were no test failures due to changing the logic.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35330>
_______________________________________
More information about the Python-bugs-list
mailing list