Skip to content

Commit

Permalink
Cleanup dao-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ismellike committed Sep 17, 2024
1 parent 5dc69ca commit 5631670
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 26 deletions.
2 changes: 1 addition & 1 deletion contracts/external/cw-admin-factory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cw4 = { workspace = true }
dao-dao-core = { workspace = true, features = ["library"] }
dao-interface = { workspace = true }
dao-proposal-single = { workspace = true }
dao-testing = { workspace = true }
dao-testing = { workspace = true, features = ["test-tube"] }
dao-voting = { workspace = true }
dao-voting-cw4 = { workspace = true }
osmosis-test-tube = { workspace = true }
2 changes: 1 addition & 1 deletion contracts/external/cw-admin-factory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub mod state;
#[cfg(test)]
mod tests;

// Integrationg tests using an actual chain binary, requires
// Integration tests using an actual chain binary, requires
// the "test-tube" feature to be enabled
// cargo test --features test-tube
#[cfg(test)]
Expand Down
1 change: 1 addition & 0 deletions packages/dao-testing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ pub mod contracts;
pub use tests::*;

#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "test-tube")]
pub mod test_tube;
1 change: 1 addition & 0 deletions packages/dao-testing/src/test_tube/cw_admin_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ impl<'a> CwAdminFactory<'a> {
funds: &[Coin],
) -> Result<Self, RunnerError> {
let wasm = Wasm::new(app);

let code_id = wasm
.store_code(&Self::get_wasm_byte_code(), None, signer)?
.data
Expand Down
27 changes: 3 additions & 24 deletions packages/dao-testing/src/test_tube/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,14 @@
// the "test-tube" feature to be enabled
// cargo test --features test-tube

#[cfg(feature = "test-tube")]
pub mod cw_admin_factory;

#[cfg(feature = "test-tube")]
pub mod cw_abc;

#[cfg(feature = "test-tube")]
pub mod cw_tokenfactory_issuer;

#[cfg(feature = "test-tube")]
pub mod cw4_group;

#[cfg(feature = "test-tube")]
pub mod cw721_base;

#[cfg(feature = "test-tube")]
pub mod cw_abc;
pub mod cw_admin_factory;
pub mod cw_tokenfactory_issuer;
pub mod dao_abc_factory;

#[cfg(feature = "test-tube")]
pub mod dao_dao_core;

#[cfg(feature = "test-tube")]
pub mod dao_proposal_single;

#[cfg(feature = "test-tube")]
pub mod dao_test_custom_factory;

#[cfg(feature = "test-tube")]
pub mod dao_voting_cw4;

#[cfg(feature = "test-tube")]
pub mod dao_voting_token_staked;

0 comments on commit 5631670

Please sign in to comment.