def setUp(self): warnings.simplefilter('ignore') MASTERNODE_DB.init(':memory:') MASTERNODE_DB.connect(reuse_if_open=True) MASTERNODE_DB.create_tables(DB_MODELS)
def create_database(): MASTERNODE_DB.init(Settings.MN_DATABASE_FILE) MASTERNODE_DB.connect(reuse_if_open=True) MASTERNODE_DB.create_tables(DB_MODELS)
def setUp(self): MASTERNODE_DB.init(':memory:') MASTERNODE_DB.connect(reuse_if_open=True) MASTERNODE_DB.create_tables(DB_MODELS)