abstract_testing

Function abstract_mock_querier

Source
pub fn abstract_mock_querier(mock_api: MockApi) -> MockQuerier
Expand description

A mock querier that returns the following responses for the following RAW contract -> queries:

  • ABSTRACT_ACCOUNT
    • “admin” -> TEST_OWNER
    • “modules:TEST_MODULE_ID” -> TEST_MODULE_ADDRESS
    • “account_id” -> ABSTRACT_ACCOUNT_ID
  • REGISTRY
    • “account” -> { ABSTRACT_ACCOUNT }

Also it returns query responses for