mockito-python icon indicating copy to clipboard operation
mockito-python copied to clipboard

Let mockito check expectations on `__exit__`

Open kaste opened this issue 2 years ago • 1 comments

There is an interesting patch on SublimeLinter https://github.com/SublimeLinter/SublimeLinter/commit/eea4e984da374c33255b551266b90d1e0d0b7650

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.

kaste avatar Jun 24 '22 15:06 kaste

This feature would be great!

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

gonzalesMK avatar Mar 10 '23 18:03 gonzalesMK