[New-bugs-announce] [issue44684] Docs for mock.call

Thomas Guettler report at bugs.python.org
Tue Jul 20 10:38:46 EDT 2021


New submission from Thomas Guettler <guettli at thomas-guettler.de>:

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.

----------
assignee: docs at python
components: Documentation
messages: 397874
nosy: docs at python, guettli
priority: normal
severity: normal
status: open
title: Docs for mock.call
versions: Python 3.9

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


More information about the New-bugs-announce mailing list