equal
deleted
inserted
replaced
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 from cubicweb.devtools import TestServerConfiguration, get_test_db_handler |
19 from cubicweb.devtools import TestServerConfiguration, get_test_db_handler |
20 from cubicweb.devtools.repotest import BasePlannerTC, test_plan |
20 from cubicweb.devtools.repotest import BasePlannerTC, check_plan |
21 from cubicweb.server.ssplanner import SSPlanner |
21 from cubicweb.server.ssplanner import SSPlanner |
22 |
22 |
23 # keep cnx so it's not garbage collected and the associated session closed |
23 # keep cnx so it's not garbage collected and the associated session closed |
24 def setUpModule(*args): |
24 def setUpModule(*args): |
25 global repo, cnx |
25 global repo, cnx |
32 def tearDownModule(*args): |
32 def tearDownModule(*args): |
33 global repo, cnx |
33 global repo, cnx |
34 del repo, cnx |
34 del repo, cnx |
35 |
35 |
36 class SSPlannerTC(BasePlannerTC): |
36 class SSPlannerTC(BasePlannerTC): |
37 _test = test_plan |
37 _test = check_plan |
38 |
38 |
39 def setUp(self): |
39 def setUp(self): |
40 self.__class__.repo = repo |
40 self.__class__.repo = repo |
41 BasePlannerTC.setUp(self) |
41 BasePlannerTC.setUp(self) |
42 self.planner = SSPlanner(self.o.schema, self.repo.vreg.rqlhelper) |
42 self.planner = SSPlanner(self.o.schema, self.repo.vreg.rqlhelper) |