diff --git a/tests/integration.rs b/tests/integration.rs index 3a2a55c..3de62df 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -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}, @@ -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, Abstract, AppInterface)> { // Create a sender - let sender = Addr::unchecked(ADMIN); + let sender = Addr::unchecked(OWNER); // Create the mock let mock = Mock::new(&sender); @@ -31,7 +29,7 @@ fn setup() -> anyhow::Result<(AbstractAccount, Abstract, 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 diff --git a/tests/wasm.rs b/tests/wasm.rs index 87bbacc..1400e21 100644 --- a/tests/wasm.rs +++ b/tests/wasm.rs @@ -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);