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
Mock query responses only support one response per message type
Problem Definition
When writing contract tests using the new proto based messages, queries are handled with mock responses, however, the mocked response can only be set once per query type via proto path here. This does not support multiple queries of the same type within a contract execution, i.e. - querying for multiple Markers sequentially within a single contract invocation.
Proposal
Ideally, use a test framework to mock the querier rather than extending the existing mock_response
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Summary
Mock query responses only support one response per message type
Problem Definition
When writing contract tests using the new proto based messages, queries are handled with mock responses, however, the mocked response can only be set once per query type via proto path here. This does not support multiple queries of the same type within a contract execution, i.e. - querying for multiple Markers sequentially within a single contract invocation.
Proposal
Ideally, use a test framework to mock the querier rather than extending the existing
mock_response
For Admin Use
The text was updated successfully, but these errors were encountered: