You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just had an initial experiment with type-enforced and I'm running into errors like this from the unit tests...
E TypeError: (Conduit.__init__): Type mismatch for typed variable `echo_fn`. Expected one of the following `[<class 'collections.abc.Callable'>]` but got `<class 'unittest.mock.MagicMock'>` instead.
Is there any guidance on how to use mocks in unit tests while using type-enforced?
The text was updated successfully, but these errors were encountered:
I just had an initial experiment with
type-enforced
and I'm running into errors like this from the unit tests...Is there any guidance on how to use mocks in unit tests while using
type-enforced
?The text was updated successfully, but these errors were encountered: