def setup_clean_db(self, load_test_data=True): create_sql_filename = 'openheadb_mysql.sql' testdata_sql_filename = 'testdata.sql' database_initialiser = DatabaseInitialiser(self.config) self.setup_db_file(create_sql_filename) self.setup_db_file(testdata_sql_filename) self.grant_permissions() assert database_initialiser.createDatabase(create_sql_filename) database_initialiser.executeSQL(testdata_sql_filename)
def test_createDatabase(self): sql_filename = 'openheadb_mysql.sql' database_initialiser = DatabaseInitialiser(self.config) self.helper.setup_db_file(sql_filename) assert database_initialiser.createDatabase(sql_filename)