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

Mockito is a spying framework

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

I just upgraded from mockito-1.3.0 to mockito-1.4.0 and many of my tests began to fail. Here is "somewhat minimal" example of what kind of code used to work, but it...

Add support for mocking the value returned from functions like `datetime.datetime.now()`. I have several functions that make use of the current date. I have not found a way to appropriately...

__Current behaviour__: When we call `verifyStubbedInvocationsAreUsed` it checks that all stubbed invocations are called at least once, ensuring we don't have unnecessary stubbing. This is often useful to have in...

See https://stackoverflow.com/questions/53742022/how-to-properly-use-verifynounwantedinteractions-in-python-mockito/54346862 `verifyNoUnwantedInteractions` only works when the user used `expect`. Clearly better candidates are `verifyExpectations` or the more verbose `verifyExpectationsAreMet`. That at least indicates that a `when` might not be...

This looks nice and should be translated to `atleast`. Applies to `verify` and `expect`. The equivalent `(,20)` is not possible as it is a syntax error.

enhancement
Open for PR

This is the PR for #98. The idea is to make `Mock` observable so we can register ordered invocations from different mocks. The `mocking_registry` helps to get the mocks for...

Hello @kaste, as we discussed in in issue #97 there isn't an implementation for [InOrder](https://github.com/kaste/mockito-python/blob/master/mockito/inorder.py). I would like to implement it but I need your opinion. I think we should...