test/unittest_schema.py
changeset 6640 4c4616c02f69
parent 6427 c8a5ac2d1eaa
child 6768 b75f688bded7
equal deleted inserted replaced
6639:90ae7eb3460f 6640:4c4616c02f69
   149         self.assertRaises(RQLSyntaxError, RRQLExpression, 'O X Y')
   149         self.assertRaises(RQLSyntaxError, RRQLExpression, 'O X Y')
   150         expr = RRQLExpression('U has_update_permission O')
   150         expr = RRQLExpression('U has_update_permission O')
   151         self.assertEqual(str(expr), 'Any O,U WHERE U has_update_permission O, O eid %(o)s, U eid %(u)s')
   151         self.assertEqual(str(expr), 'Any O,U WHERE U has_update_permission O, O eid %(o)s, U eid %(u)s')
   152 
   152 
   153 loader = CubicWebSchemaLoader()
   153 loader = CubicWebSchemaLoader()
   154 config = TestConfiguration('data')
   154 config = TestConfiguration('data', apphome=DATADIR)
   155 config.bootstrap_cubes()
   155 config.bootstrap_cubes()
   156 
   156 
   157 class SchemaReaderClassTest(TestCase):
   157 class SchemaReaderClassTest(TestCase):
   158 
   158 
   159     def test_order_eschemas(self):
   159     def test_order_eschemas(self):