# HG changeset patch # User Julien Cristau # Date 1454686340 -3600 # Node ID 02e88ca3bc2374cd31713eb6963d72415247a1aa # Parent 35b29f1eb37aa716ccd1275723411c27d4240e6c [dataimport/test] fix test failures since 35b29f1eb37a The index name changed, so we need to follow suit. diff -r 35b29f1eb37a -r 02e88ca3bc23 cubicweb/dataimport/test/test_massive_store.py --- a/cubicweb/dataimport/test/test_massive_store.py Wed Feb 03 11:12:58 2016 +0100 +++ b/cubicweb/dataimport/test/test_massive_store.py Fri Feb 05 16:32:20 2016 +0100 @@ -112,7 +112,7 @@ crs = cnx.system_sql('SELECT indexname FROM pg_indexes') indexes = [r[0] for r in crs.fetchall()] self.assertNotIn('entities_pkey', indexes) - self.assertNotIn('unique_entities_extid_idx', indexes) + self.assertNotIn('entities_extid_idx', indexes) self.assertNotIn('owned_by_relation_pkey', indexes) self.assertNotIn('owned_by_relation_to_idx', indexes) @@ -125,7 +125,7 @@ crs = cnx.system_sql('SELECT indexname FROM pg_indexes') indexes = [r[0] for r in crs.fetchall()] self.assertIn('entities_pkey', indexes) - self.assertIn('unique_entities_extid_idx', indexes) + self.assertIn('entities_extid_idx', indexes) self.assertIn('owned_by_relation_p_key', indexes) self.assertIn('owned_by_relation_to_idx', indexes) @@ -208,7 +208,7 @@ crs = cnx.system_sql('SELECT indexname FROM pg_indexes') indexes = [r[0] for r in crs.fetchall()] self.assertIn('entities_pkey', indexes) - self.assertIn('unique_entities_extid_idx', indexes) + self.assertIn('entities_extid_idx', indexes) self.assertIn('owned_by_relation_p_key', indexes) self.assertIn('owned_by_relation_to_idx', indexes) @@ -242,7 +242,7 @@ crs = cnx.system_sql('SELECT indexname FROM pg_indexes') indexes = [r[0] for r in crs.fetchall()] self.assertNotIn('entities_pkey', indexes) - self.assertNotIn('unique_entities_extid_idx', indexes) + self.assertNotIn('entities_extid_idx', indexes) self.assertNotIn('owned_by_relation_p_key', indexes) self.assertNotIn('owned_by_relation_to_idx', indexes) @@ -253,7 +253,7 @@ crs = cnx.system_sql('SELECT indexname FROM pg_indexes') indexes = [r[0] for r in crs.fetchall()] self.assertIn('entities_pkey', indexes) - self.assertIn('unique_entities_extid_idx', indexes) + self.assertIn('entities_extid_idx', indexes) self.assertIn('owned_by_relation_p_key', indexes) self.assertIn('owned_by_relation_to_idx', indexes)