Skip to content

bpo-40820: Add change version for Mock Call args and kwargs properties #20519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Doc/library/unittest.mock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,10 @@ the *new_callable* argument to :func:`patch`.
arguments and make more complex assertions. See
:ref:`calls as tuples <calls-as-tuples>`.

.. versionchanged:: 3.8
Added the ``args`` and ``kwargs`` properties to more easily access the
positional args and keyword args within a ``Call`` object.


.. attribute:: call_args_list

Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ Neil Girdhar
Matt Giuca
Franz Glasner
Wim Glenn
Andrew Gobis
Michael Goderbauer
Karan Goel
Jeroen Van Goey
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing change version for ``args`` and ``kwargs`` mock call objects. Contributed by Andrew Gobis.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document changes don't need a NEWS entry as they don't change the behaviour of Python but you should add your name to Misc/ACKS.