equal
deleted
inserted
replaced
25 from cubicweb.schema import RRQLExpression, ERQLExpression |
25 from cubicweb.schema import RRQLExpression, ERQLExpression |
26 from cubicweb.rqlrewrite import RQLRewriter |
26 from cubicweb.rqlrewrite import RQLRewriter |
27 from cubicweb.devtools import repotest, TestServerConfiguration |
27 from cubicweb.devtools import repotest, TestServerConfiguration |
28 |
28 |
29 |
29 |
30 def setup_module(*args): |
30 def setUpModule(*args): |
31 global rqlhelper, schema |
31 global rqlhelper, schema |
32 config = TestServerConfiguration(RQLRewriteTC.datapath('rewrite')) |
32 config = TestServerConfiguration(RQLRewriteTC.datapath('rewrite')) |
33 config.bootstrap_cubes() |
33 config.bootstrap_cubes() |
34 schema = config.load_schema() |
34 schema = config.load_schema() |
35 from yams.buildobjs import RelationDefinition |
35 from yams.buildobjs import RelationDefinition |
37 |
37 |
38 rqlhelper = RQLHelper(schema, special_relations={'eid': 'uid', |
38 rqlhelper = RQLHelper(schema, special_relations={'eid': 'uid', |
39 'has_text': 'fti'}) |
39 'has_text': 'fti'}) |
40 repotest.do_monkey_patch() |
40 repotest.do_monkey_patch() |
41 |
41 |
42 def teardown_module(*args): |
42 def tearDownModule(*args): |
43 repotest.undo_monkey_patch() |
43 repotest.undo_monkey_patch() |
44 global rqlhelper, schema |
44 global rqlhelper, schema |
45 del rqlhelper, schema |
45 del rqlhelper, schema |
46 |
46 |
47 def eid_func_map(eid): |
47 def eid_func_map(eid): |