We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example:
mock_foo.assert_called_with(Eq(expected, on=attrgetter('id')))
which is equivalent to:
mock_foo.assert_called_with(ArgThat(lambda x: x.id == expected.id))
Optionally, if just a string is given to on=, treat it as an implicit argument to attrgetter, e.g. on='id'.
on=
attrgetter
on='id
Make key= an alias for on= for consistency with max/min/etc.
key=
max
min
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example:
which is equivalent to:
Optionally, if just a string is given to
on=
, treat it as an implicit argument toattrgetter
, e.g.on='id
'.Make
key=
an alias foron=
for consistency withmax
/min
/etc.The text was updated successfully, but these errors were encountered: