mindsdb_tables = [x["name"] for x in mindsdb_tables]
self.assertTrue(TEST_PREDICTOR_NAME not in mindsdb_tables)
print("mindsdb.predictors table exists")
self.assertTrue("predictors" in mindsdb_tables)
print("mindsdb.commands table exists")
self.assertTrue("commands" in mindsdb_tables)
After Change
self.assertTrue(TEST_DATA_TABLE in self.get_tables_in("test_data"))
print("Test predictor table not exists")
mindsdb_tables = self.get_tables_in(MINDSDB_DATABASE)
self.assertTrue(TEST_PREDICTOR_NAME not in mindsdb_tables)
self.assertTrue("predictors" in mindsdb_tables)
self.assertTrue("commands" in mindsdb_tables)