cubicweb/dataimport/test/test_massive_store.py
changeset 11314 c258bd6b20d8
parent 11310 e0b7277e5394
child 11321 fab543f542ac
equal deleted inserted replaced
11313:682b15eb2dd2 11314:c258bd6b20d8
   163 SELECT table_name
   163 SELECT table_name
   164 FROM information_schema.tables
   164 FROM information_schema.tables
   165 where table_schema = %(s)s''', {'s': pgh.pg_schema}).fetchall()
   165 where table_schema = %(s)s''', {'s': pgh.pg_schema}).fetchall()
   166         all_tables_descr = {}
   166         all_tables_descr = {}
   167         for tablename, in all_tables:
   167         for tablename, in all_tables:
   168             all_tables_descr[tablename] = set(pgh.index_list(tablename)).union(
   168             all_tables_descr[tablename] = set(pgh.table_indexes(tablename)).union(
   169                 set(pgh.constraint_list(tablename)))
   169                 set(pgh.table_constraints(tablename)))
   170         return all_tables_descr
   170         return all_tables_descr
   171 
   171 
   172     def test_identical_schema(self):
   172     def test_identical_schema(self):
   173         with self.admin_access.repo_cnx() as cnx:
   173         with self.admin_access.repo_cnx() as cnx:
   174             init_descr = self.get_db_descr(cnx)
   174             init_descr = self.get_db_descr(cnx)