classification
Title: Ambiguous documentation for assert_called_with()
Type: Stage: patch review
Components: Documentation Versions: Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: chimaerase, docs@python, remi.lapeyre
Priority: normal Keywords: patch, patch, patch

Created on 2019-02-08 22:15 by chimaerase, last changed 2019-02-08 23:53 by chimaerase.

Pull Requests
URL Status Linked Edit
PR 11796 open remi.lapeyre, 2019-02-08 22:37
PR 11796 open remi.lapeyre, 2019-02-08 22:37
PR 11796 open remi.lapeyre, 2019-02-08 22:37
Messages (3)
msg335112 - (view) Author: Mark Forrer (chimaerase) Date: 2019-02-08 22:15
The documentation for assert_called_with() is ambiguous with regard to the fact that the method only checks the most recent call.  This behavior for assert_called_with() is only documented under assert_any_call(), which users are unlikely to read when making quick reference to the documentation.
msg335114 - (view) Author: Rémi Lapeyre (remi.lapeyre) * Date: 2019-02-08 22:39
Hi Mark Forrer, I opened a new PR to add this precision to assert_called_with documentation.
msg335119 - (view) Author: Mark Forrer (chimaerase) Date: 2019-02-08 23:53
Thank you Rémi!

Thanks,

--Mark--

On Fri, Feb 8, 2019 at 2:39 PM Rémi Lapeyre <report@bugs.python.org> wrote:

>
> Rémi Lapeyre <remi.lapeyre@henki.fr> added the comment:
>
> Hi Mark Forrer, I opened a new PR to add this precision to
> assert_called_with documentation.
>
> ----------
> nosy: +remi.lapeyre
> versions: +Python 3.8
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue35946>
> _______________________________________
>
History
Date User Action Args
2019-02-08 23:53:24chimaerasesetmessages: + msg335119
2019-02-08 22:39:20remi.lapeyresetnosy: + remi.lapeyre

messages: + msg335114
versions: + Python 3.8
2019-02-08 22:37:48remi.lapeyresetkeywords: + patch
stage: patch review
pull_requests: + pull_request11802
2019-02-08 22:37:44remi.lapeyresetkeywords: + patch
stage: (no value)
pull_requests: + pull_request11801
2019-02-08 22:37:41remi.lapeyresetkeywords: + patch
stage: (no value)
pull_requests: + pull_request11800
2019-02-08 22:15:08chimaerasecreate