Skip to content
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

Allow Spy methods to accept a Callable #639

Open
bitwes opened this issue Jul 16, 2024 · 0 comments
Open

Allow Spy methods to accept a Callable #639

bitwes opened this issue Jul 16, 2024 · 0 comments

Comments

@bitwes
Copy link
Owner

bitwes commented Jul 16, 2024

Versions

4.x

The Feature

Allow all the spy asserts to take a Callable instead of an object and method name.

  • assert_called. Bound parameters will be used as parameters parameter.
  • assert_not_called. Bound parameters will be used as parameters parameter.
  • assert_call_count. Bound parameters will be used as parameters parameter.
  • get_call_parameters. Bound parameters will cause an error or warning because they have no use.
  • get_call_count. Bound parameters will be used as parameters parameter.
@bitwes bitwes changed the title Allow assert_called to take Callable Allow Spy asserts to accept a Callable Jul 16, 2024
@bitwes bitwes changed the title Allow Spy asserts to accept a Callable Allow Spy methods to accept a Callable Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant