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

Let mockito check expectations on __exit__ #55

Open
kaste opened this issue Jun 24, 2022 · 1 comment
Open

Let mockito check expectations on __exit__ #55

kaste opened this issue Jun 24, 2022 · 1 comment

Comments

@kaste
Copy link
Owner

kaste commented Jun 24, 2022

There is an interesting patch on SublimeLinter SublimeLinter/SublimeLinter@eea4e98

It looks like we don't verify anything when popping the contextmanager stacks, ahem on __exit__, and it totally makes sense to check if a set expectation holds and if a stub has been used actually.

@gonzalesMK
Copy link

This feature would be great!

Could also add an option on unstub to check for unused mocks ?

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

No branches or pull requests

2 participants