[issue44684] Docs for mock.call

Karthikeyan Singaravelan report at bugs.python.org
Tue Jul 20 12:10:03 EDT 2021


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

> A call object is either a tuple of (positional args, keyword args) or (name, positional args, keyword args) depending on how it was constructed

https://github.com/python/cpython/pull/11807 added support for args and kwargs from python 3.9. So I guess you want to do call_object.kwargs["foo"] == "bar"

----------
nosy: +xtreak

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44684>
_______________________________________


More information about the Python-bugs-list mailing list