agent0.chainsync.db.base.interface_test

CRUD tests for CheckpointInfo

Classes

TestAddrToUsernameInterface

Testing postgres interface for usermap table

Functions

test_query_tables(dummy_session)

Return a list of tables in the database.

test_drop_table(dummy_session)

Drop a table from the database.

Module Contents

agent0.chainsync.db.base.interface_test.test_query_tables(dummy_session)

Return a list of tables in the database.

agent0.chainsync.db.base.interface_test.test_drop_table(dummy_session)

Drop a table from the database.

class agent0.chainsync.db.base.interface_test.TestAddrToUsernameInterface

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