Message397874
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. |
|
Date |
User |
Action |
Args |
2021-07-20 14:38:46 | guettli | set | recipients:
+ guettli, docs@python |
2021-07-20 14:38:46 | guettli | set | messageid: <1626791926.02.0.184089521055.issue44684@roundup.psfhosted.org> |
2021-07-20 14:38:46 | guettli | link | issue44684 messages |
2021-07-20 14:38:45 | guettli | create | |
|