This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author guettli
Recipients docs@python, guettli
Date 2021-07-20.14:38:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626791926.02.0.184089521055.issue44684@roundup.psfhosted.org>
In-reply-to
Content
The docs for `mock.call` could get improved:

https://docs.python.org/3/library/unittest.mock.html#call

Up to now it is not clear how to access individual members of the call.

Example: I want to check if the call used the kwarg "foo" with the value of "bar".

Usually you don't need this, since you check for the whole call (all args and all kwargs).

But sometimes you jus twant to check for a single arg/kwarg.

Then it would be nice to have more detailed docs for the class "call".

BTW: Why has this class a lower-case name? Looks a bit strange.
History
Date User Action Args
2021-07-20 14:38:46guettlisetrecipients: + guettli, docs@python
2021-07-20 14:38:46guettlisetmessageid: <1626791926.02.0.184089521055.issue44684@roundup.psfhosted.org>
2021-07-20 14:38:46guettlilinkissue44684 messages
2021-07-20 14:38:45guettlicreate