def setUpClass(cls): cls.url = dbutils.postgres_create_db( variables.POSTGRES_SERVER, 'test_cache', **{ 't1': cls.data, 't2': cls.data, 'sc.t3': cls.data })
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)
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)
def test_insert_postgres(self): url = dbutils.postgres_create_db(server.postgres, 'test_insert') self.check_insert_db(url, 'postgres')
def test_postgres(self): url = dbutils.postgres_create_db(server.postgres, 'test_alter', sales=self.sales) self.db.add('postgres') self.check_alter(url)