function create_database will call create_tables only for tarantool connection

This commit is contained in:
andrei 2022-05-26 15:32:10 +03:00
parent cc6f8eea16
commit a905de6792
2 changed files with 4 additions and 4 deletions

View File

@ -165,12 +165,11 @@ def drop_database(connection, not_used=None):
def create_database(connection, not_used=None):
'''
This function 'create_database' cannot be used with TarantoolDB connection Class.
It will be ignored if called. No Errors.
For tarantool implementation, this function runs
create_tables, to initiate spaces, schema and indexes.
'''
# connection.init_database()
warnings.warn("Function schema.'create_database', ignored. Cannot be used using TarantoolDB")
create_tables(None, None)
def run_command_with_output(command):

View File

@ -145,6 +145,7 @@ def _setup_database(_configure_planetmint): # TODO Here is located setup databa
@pytest.fixture
def _bdb(_setup_database):
print(f"BDB CALL")
from planetmint.backend import Connection
from planetmint.transactions.common.memoize import to_dict, from_dict
from planetmint.models import Transaction