[test] py.test related fix
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 21 Jun 2016 13:49:15 +0200
changeset 11332 7187bf515251
parent 11331 f2ff82dfcd5c
child 11333 094b29cf2dc9
[test] py.test related fix We ought not import a concrete test case from a sibling module, else it ends up partially initialized at some point and later raise assertion error in setUpClass.
cubicweb/dataimport/test/test_massive_store.py
--- a/cubicweb/dataimport/test/test_massive_store.py	Tue Feb 02 12:08:49 2016 +0100
+++ b/cubicweb/dataimport/test/test_massive_store.py	Tue Jun 21 13:49:15 2016 +0200
@@ -23,7 +23,7 @@
 from cubicweb.dataimport import ucsvreader, stores
 from cubicweb.dataimport.massive_store import MassiveObjectStore, PGHelper
 
-from test_stores import NoHookRQLObjectStoreWithCustomMDGenStoreTC
+import test_stores
 
 
 def setUpModule():
@@ -34,7 +34,8 @@
     stoppgcluster(__file__)
 
 
-class MassiveObjectStoreWithCustomMDGenStoreTC(NoHookRQLObjectStoreWithCustomMDGenStoreTC):
+class MassiveObjectStoreWithCustomMDGenStoreTC(
+        test_stores.NoHookRQLObjectStoreWithCustomMDGenStoreTC):
     configcls = PostgresApptestConfiguration
 
     def store_impl(self, cnx):