Skip to content
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

Allow multiple mock responses of same type #122

Open
4 tasks done
kwtalley opened this issue Jul 18, 2023 · 0 comments
Open
4 tasks done

Allow multiple mock responses of same type #122

kwtalley opened this issue Jul 18, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request provwasm provwasm (cosmwasm for Provenance)

Comments

@kwtalley
Copy link
Collaborator

kwtalley commented Jul 18, 2023

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

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@kwtalley kwtalley added enhancement New feature or request provwasm provwasm (cosmwasm for Provenance) labels Jul 18, 2023
@kwtalley kwtalley self-assigned this Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request provwasm provwasm (cosmwasm for Provenance)
Projects
Development

No branches or pull requests

1 participant