mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Assert abci_chains indexes
This commit is contained in:
parent
07b9802194
commit
314c7ea41a
@ -46,6 +46,9 @@ def test_init_creates_db_tables_and_indexes():
|
||||
indexes = conn.conn[dbname]['validators'].index_information().keys()
|
||||
assert set(indexes) == {'_id_', 'height'}
|
||||
|
||||
indexes = conn.conn[dbname]['abci_chains'].index_information().keys()
|
||||
assert set(indexes) == {'_id_', 'height', 'chain_id'}
|
||||
|
||||
|
||||
def test_init_database_fails_if_db_exists():
|
||||
import bigchaindb
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user