Пример #1
0
 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')
Пример #2
0
 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')
Пример #3
0
 def tearDownClass(cls):
     dbutils.sqlite_drop_db('test_filtercols.db')
Пример #4
0
 def tearDownClass(cls):
     dbutils.sqlite_drop_db('test_cache')