[dataimport/test] start our own pg cluster instead of polluting the system one

authorJulien Cristau <julien.cristau@logilab.fr>
changesetc4faa7e919fb
branchdefault
phasedraft
hiddenyes
parent revision#574897c9b3b7 WIP [dataimport] backport massive store from dataio cube
child revision#8c59f5a05d09 WIP [devtools] add logging to postgres cluster WIP, #7c787a546c34 test ok, #31216de022ec wip
files modified by this revision
dataimport/test/test_massive_store.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1445432776 -7200
# Wed Oct 21 15:06:16 2015 +0200
# Node ID c4faa7e919fb89ad8ce575e23da7752ef5b5b36a
# Parent 574897c9b3b76d69eb9a26d09a6178fd1e5b4610
[dataimport/test] start our own pg cluster instead of polluting the system one

diff --git a/dataimport/test/test_massive_store.py b/dataimport/test/test_massive_store.py
@@ -19,16 +19,25 @@
1  import os.path as osp
2  import itertools
3 
4  from cubicweb.dataimport import ucsvreader
5  from cubicweb.devtools import testlib, PostgresApptestConfiguration
6 +from cubicweb.devtools import startpgcluster, stoppgcluster
7  from cubicweb.dataimport.massive_store import MassiveObjectStore
8 
9 
10  HERE = osp.abspath(osp.dirname(__file__))
11 
12 
13 +def setUpModule():
14 +    startpgcluster(__file__)
15 +
16 +
17 +def tearDownModule(*args):
18 +    stoppgcluster(__file__)
19 +
20 +
21  class MassImportSimpleTC(testlib.CubicWebTC):
22      configcls = PostgresApptestConfiguration
23      appid = 'data-massimport'
24 
25      def cast(self, _type, value):