agent0.chainsync.db.hyperdrive.interface_test

CRUD tests for Transaction

Classes

TestHyperdriveAddrToName

Testing postgres interface for usermap table

TestCheckpointInterface

Testing postgres interface for checkpoint table

TestPoolConfigInterface

Testing postgres interface for poolconfig table

TestPoolInfoInterface

Testing postgres interface for poolinfo table

TestHyperdriveEventsInterface

Testing postgres interface for walletinfo table

Module Contents

class agent0.chainsync.db.hyperdrive.interface_test.TestHyperdriveAddrToName

Testing postgres interface for usermap table

test_get_addr_to_username(db_session)

Testing retrieval of usernames via interface

test_get_query_address(db_session)

Testing querying by address of addr_to_username via interface

test_addr_to_username_insertion_error(db_session)

Testing insertion conflicts of addr_to_username via interface

test_addr_to_username_force_insertion(db_session)

Testing force insertion of addr_to_username via interface

class agent0.chainsync.db.hyperdrive.interface_test.TestCheckpointInterface

Testing postgres interface for checkpoint table

test_get_checkpoints(db_session)

Testing retrieval of checkpoints via interface

test_checkpoint_time_query_checkpoints(db_session)

Testing querying by block number of checkpoints via interface

class agent0.chainsync.db.hyperdrive.interface_test.TestPoolConfigInterface

Testing postgres interface for poolconfig table

test_get_pool_config(db_session)

Testing retrieval of pool config via interface

test_primary_id_query_pool_config(db_session)

Testing retrieval of pool config via interface

test_pool_config_verify(db_session)

Testing retrieval of pool config via interface

class agent0.chainsync.db.hyperdrive.interface_test.TestPoolInfoInterface

Testing postgres interface for poolinfo table

test_latest_block_number(db_session)

Testing latest block number call

test_get_pool_info(db_session)

Testing retrieval of pool info via interface

test_block_query_pool_info(db_session)

Testing retrieval of pool info via interface

class agent0.chainsync.db.hyperdrive.interface_test.TestHyperdriveEventsInterface

Testing postgres interface for walletinfo table

test_latest_block_number_on_wallet(db_session)

Testing retrieval of wallet info via interface

test_latest_block_number_on_hyperdrive_address(db_session)

Testing retrieval of wallet info via interface

test_get_agents(db_session)

Testing helper function to get current wallet values