예제 #1
0
 def setUpClass(cls):
     cls.url = dbutils.postgres_create_db(
         variables.POSTGRES_SERVER, 'test_cache', **{
             't1': cls.data,
             't2': cls.data,
             'sc.t3': cls.data
         })
예제 #2
0
 def setUpClass(cls):
     cls.url = dbutils.postgres_create_db(
         variables.POSTGRES_SERVER, 'test_cache', **{
             't1': cls.data,
             't2': cls.data,
             'sc.t3': cls.data
         })
     cls.engine = sa.create_engine(cls.url, encoding=str_utf8)
예제 #3
0
 def test_postgres(self):
     url = dbutils.postgres_create_db(
         server.postgres, 'test_filter', **{
             'sales': self.sales,
             'filter.sales': self.sales
         })
     self.check_filter_db('postgres', url, na_position='last')
     self.check_filter(url=url,
                       table='filter.sales',
                       na_position='last',
                       sum_na=True)
예제 #4
0
 def test_insert_postgres(self):
     url = dbutils.postgres_create_db(server.postgres, 'test_insert')
     self.check_insert_db(url, 'postgres')
예제 #5
0
 def test_postgres(self):
     url = dbutils.postgres_create_db(server.postgres,
                                      'test_alter',
                                      sales=self.sales)
     self.db.add('postgres')
     self.check_alter(url)