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

Mockito is a spying framework

Results 13 mockito-python issues
Sort by recently updated
recently updated
newest added

Related: https://github.com/kaste/mockito-python/issues/27 👋 We currently are using `mockito-python` but checks are failing when running mypy. Here's the output: ``` error: Skipping analyzing "mockito": module is installed, but missing library stubs...

The implementation of thenCallOriginalImplementation required a refactor of the way self is discarded. Now, self is kept in the params and discarded only when we don't need it. Linked to...

Hello ! First, I really like mockito-python :heart: Now my problem :) If I want to mock the method of a class with `thenAnswer` and then have access to the...

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...

enhancement

**Note**: Please feel free to close the issue if this has been discussed before in any of the issue. Currently the `AnswerSelector` interface provides the following methods to be used...

Is it possible to use Mockito to replace `sys.argv` or `sys.stdout`? I could do it with `unittest.mock.patch` but I'd rather use a single mocking tool: ```python def it_outputs_answers_based_on_an_argument(when): with patch('sys.argv',...

Any plans to support the equivalent of Java's `org.mockito.verification.Timeout`?

I found https://github.com/edgeware/mockito-python/commit/4adbc1140393f53db11da2f91b863d13338e95c4 but I don't know if it is working

Open for PR

The original mockito in Java has that and it's very convenient; can this be implemented in python mockito as well? I'm a beginner in python but AFAICS this can be...

Hello, I didn’t find this information in the documentation, so how would I achieve that? E.g. Makes sure that this passes: ``` verify(self._subscriber1, times=1).run('data') verify(self._subscriber2, times=1).run('data') verify(self._subscriber3, times=1).run('data') ``` but...