[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.
--- 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):