Skip to content

Commit

Permalink
Clean up abstract testing addresses mod (#168)
Browse files Browse the repository at this point in the history
* clean up framework

* clean up template

* clean up modules

* clean local admin definitions from modules

* fix merge

---------

Co-authored-by: cyberhoward <[email protected]>
  • Loading branch information
Buckram123 and CyberHoward authored Nov 28, 2023
1 parent 4e28b29 commit 722eb70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 3 additions & 5 deletions tests/integration.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use abstract_core::objects::{gov_type::GovernanceDetails, AccountId};
use abstract_interface::{Abstract, AbstractAccount, AppDeployer, VCExecFns};
use abstract_testing::OWNER;
use app::{
contract::{APP_ID, APP_VERSION},
msg::{AppInstantiateMsg, ConfigResponse},
Expand All @@ -10,13 +11,10 @@ use cw_orch::{anyhow, deploy::Deploy, prelude::*};

use cosmwasm_std::Addr;

// consts for testing
const ADMIN: &str = "admin";

/// Set up the test environment with the contract installed
fn setup() -> anyhow::Result<(AbstractAccount<Mock>, Abstract<Mock>, AppInterface<Mock>)> {
// Create a sender
let sender = Addr::unchecked(ADMIN);
let sender = Addr::unchecked(OWNER);
// Create the mock
let mock = Mock::new(&sender);

Expand All @@ -31,7 +29,7 @@ fn setup() -> anyhow::Result<(AbstractAccount<Mock>, Abstract<Mock>, AppInterfac
abstr_deployment
.account_factory
.create_default_account(GovernanceDetails::Monarchy {
monarch: ADMIN.to_string(),
monarch: OWNER.to_string(),
})?;

// claim the namespace so app can be deployed
Expand Down
6 changes: 2 additions & 4 deletions tests/wasm.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
use app::contract::APP_ID;
use app::AppInterface;

use abstract_testing::OWNER;
use cw_orch::prelude::*;

// consts for testing
const ADMIN: &str = "admin";

#[test]
fn successful_wasm() {
// Create a sender
let sender = Addr::unchecked(ADMIN);
let sender = Addr::unchecked(OWNER);
// Create the mock
let mock = Mock::new(&sender);

Expand Down

0 comments on commit 722eb70

Please sign in to comment.