[dataimport/test] fix test failures since 35b29f1eb37a
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 05 Feb 2016 16:32:20 +0100
changeset 11095 02e88ca3bc23
parent 11087 35b29f1eb37a
child 11096 05160039f30a
[dataimport/test] fix test failures since 35b29f1eb37a The index name changed, so we need to follow suit.
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)