1 # copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
14 # details. |
14 # details. |
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 |
18 |
|
19 import os.path as osp |
19 from datetime import datetime |
20 from datetime import datetime |
20 from threading import Thread |
21 from threading import Thread |
21 |
22 |
22 from logilab.common.testlib import SkipTest |
23 from logilab.common.testlib import SkipTest |
23 |
24 |
24 from cubicweb.devtools import PostgresApptestConfiguration |
25 from cubicweb.devtools import PostgresApptestConfiguration, startpgcluster, stoppgcluster |
25 from cubicweb.devtools.testlib import CubicWebTC |
26 from cubicweb.devtools.testlib import CubicWebTC |
26 from cubicweb.predicates import is_instance |
27 from cubicweb.predicates import is_instance |
27 from cubicweb.entities.adapters import IFTIndexableAdapter |
28 from cubicweb.entities.adapters import IFTIndexableAdapter |
28 |
29 |
29 from unittest_querier import FixedOffset |
30 from unittest_querier import FixedOffset |
|
31 |
|
32 |
|
33 def setUpModule(): |
|
34 startpgcluster(__file__) |
|
35 |
|
36 |
|
37 def tearDownModule(): |
|
38 stoppgcluster(__file__) |
|
39 |
30 |
40 |
31 class PostgresFTITC(CubicWebTC): |
41 class PostgresFTITC(CubicWebTC): |
32 configcls = PostgresApptestConfiguration |
42 configcls = PostgresApptestConfiguration |
33 |
43 |
34 def test_eid_range(self): |
44 def test_eid_range(self): |