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

Add or enable a strict version of 'activate' decorator #183

Closed
ziima opened this issue Nov 10, 2017 · 3 comments · Fixed by #524
Closed

Add or enable a strict version of 'activate' decorator #183

ziima opened this issue Nov 10, 2017 · 3 comments · Fixed by #524
Assignees

Comments

@ziima
Copy link
Contributor

ziima commented Nov 10, 2017

Decorator activate is easier to use in some cases, but sadly it never checks, if all requests were used. Similar decorator with assert_all_requests_are_fired=True, or a possibility to turn it on, would be helpful.

@dcramer
Copy link
Member

dcramer commented Nov 10, 2017

Ideally we’d allow you to pass paeans to the generic decorator and it could simply instantiate a new mock each time.

That said you can easily instantiate it yourself and use it as a decorator.

@niksite
Copy link

niksite commented Feb 8, 2022

That said you can easily instantiate it yourself and use it as a decorator.

Any example, please?

@ziima
Copy link
Contributor Author

ziima commented Apr 5, 2022

Nice, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants