def tearDownClass(cls): if 'mysql' in cls.db: dbutils.mysql_drop_db(server.mysql, 'test_filter') if 'postgres' in cls.db: dbutils.postgres_drop_db(server.postgres, 'test_filter') if 'sqlite' in cls.db: dbutils.sqlite_drop_db('test_filter.db')
def tearDownClass(cls): for path in cls.tmpfiles: if os.path.exists(path): os.remove(path) if 'mysql' in cls.db: dbutils.mysql_drop_db(server.mysql, 'test_insert') if 'postgres' in cls.db: dbutils.postgres_drop_db(server.postgres, 'test_insert') if 'sqlite' in cls.db: dbutils.sqlite_drop_db('test_insert.db')
def tearDownClass(cls): dbutils.mysql_drop_db(variables.MYSQL_SERVER, 'test_cache')