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

Add tests for MockApi in App #81

Merged
merged 6 commits into from
Oct 10, 2023
Merged

Add tests for MockApi in App #81

merged 6 commits into from
Oct 10, 2023

Conversation

DariuszDepta
Copy link
Member

@DariuszDepta DariuszDepta commented Oct 10, 2023

Added unit tests for cosmwasm_std::testing::MockApi used by default in App.
In future versions of cosmwasm-std, the behavior of cosmwasm_std::testing::MockApi will be changed, so these tests should then guard these changes.
For planned changes in cosmwasm_std::testing::MockApi see:

Added integration test for AppBuilder::with_api function that takes as an argument a custom implementation of Api trait. This example test shows how to apply custom address encodings to Api interface.

@DariuszDepta DariuszDepta added this to the 0.18.0 milestone Oct 10, 2023
@DariuszDepta DariuszDepta self-assigned this Oct 10, 2023
Copy link
Contributor

@chipshort chipshort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/tests/app.rs Show resolved Hide resolved
@DariuszDepta DariuszDepta merged commit 5fb2039 into main Oct 10, 2023
7 checks passed
@DariuszDepta DariuszDepta deleted the test-mock-api branch October 10, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants