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

Enable assertCallsFunction to count the number of times that the target function was called #496

Open
Duckwhale opened this issue Feb 9, 2024 · 0 comments

Comments

@Duckwhale
Copy link
Member

Duckwhale commented Feb 9, 2024

One of the rarely-used assertions is assertCallsFunction, which has a niche use case in test cases, mostly for verifying side effects. Currently, it uses debug hooks to check that the target function is called (once). Ideally, it should check the count (added parameter) and allow the user to optionally assert that the expected number of calls was made - defaulting to one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Vague and distant future (Backlog)
Development

No branches or pull requests

1 participant