Skip to content

Commit

Permalink
feat: improve mock desmos app (#38)
Browse files Browse the repository at this point in the history
This PR intends to give a way to build custom `DesmosKeeper` for tests by having a new trait `DesmosModule`.

```rust
pub struct CustomDesmosKeeper {}
impl DesmosModule for CustomDesmosKeeper {
   // custom handle functions
}

#[test]
fn test_something() -> {
    let mut app = custom_desmos_app(CustomDesmosKeeper{}, |_, _, _| {});
    // test with custom mock app ...
}
```

After CosmWasm/cw-plus#773 is released, it can be merged.
  • Loading branch information
dadamu authored Sep 16, 2022
1 parent 96395c7 commit bb9fe1b
Show file tree
Hide file tree
Showing 5 changed files with 813 additions and 795 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: feat
module: none
pull_request: 38
description: Improve desmos mock apps lib
backward_compatible: true
date: 2022-09-15T11:24:06.8537005Z
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bb9fe1b

Please sign in to comment.