generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make WithCallsAllowedWithinModule()
the default and remove
#2984
Comments
Open
worstell
added a commit
that referenced
this issue
Oct 10, 2024
when using ftltest.Call, you don't need to mock the verb directly invoked. only downstream verbs must be mocked (or overridden by setting WithCallsAllowedWithinModule globally) fixes #2984
worstell
added a commit
that referenced
this issue
Oct 10, 2024
when using ftltest.Call, you don't need to mock the verb directly invoked. only downstream verbs must be mocked (or overridden by setting WithCallsAllowedWithinModule globally) fixes #2984
worstell
added a commit
that referenced
this issue
Oct 10, 2024
when using ftltest.Call, you don't need to mock the verb directly invoked. only downstream verbs must be mocked (or overridden by setting WithCallsAllowedWithinModule globally) fixes #2984
worstell
added a commit
that referenced
this issue
Oct 10, 2024
when using ftltest.Call, you don't need to mock the verb directly invoked. only downstream verbs must be mocked (or overridden by setting WithCallsAllowedWithinModule globally) fixes #2984
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
now that we have injected resources on verbs, users should always be using
ftltest.Call
to invoke verbs in tests rather than invoking the verb function directly. currently, users must also setWithCallsAllowedWithinModule()
in the test context in order to useftltest.Call
on a verb that is not mocked (and get its inline behavior).it seems like we should just execute inline behavior as the default for
ftltest.Call
on same-module verbs, and overridde with any mocks when present. only external verbs would require mocksthis came up when updating customer code to the new verb client injection patterns + corresponding unit tests. for every unit test,
WithCallsAllowedWithinModule()
had to be set on the contextThe text was updated successfully, but these errors were encountered: