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
In a language with a good type system you can be sure that the result you swapped in as part of a test vaguely make sense. In Python it's easy to write tests using mocks or resolved values where you end up testing against return types that don't match what the real function returns.
Perhaps intent objects should have a way document or provide validation functions for the return types and callable arguments. Then tests that use resolve_effect (as well as those that test the intent itself) can automatically ensure the tests are using the correct types.