cubicweb/server/test/unittest_rqlannotation.py
changeset 12885 194e9ae964ed
parent 12237 2dd0dcb2e5f9
equal deleted inserted replaced
12884:9754c40c732a 12885:194e9ae964ed
    20 
    20 
    21 from cubicweb import devtools
    21 from cubicweb import devtools
    22 from cubicweb.devtools.repotest import BaseQuerierTC
    22 from cubicweb.devtools.repotest import BaseQuerierTC
    23 
    23 
    24 
    24 
    25 class SQLGenAnnotatorTC(BaseQuerierTC):
    25 class RQLAnnotatorTC(BaseQuerierTC):
    26 
    26 
    27     def setUp(self):
    27     def setUp(self):
    28         handler = devtools.get_test_db_handler(devtools.TestServerConfiguration('data', __file__))
    28         handler = devtools.get_test_db_handler(devtools.TestServerConfiguration('data', __file__))
    29         handler.build_db_cache()
    29         handler.build_db_cache()
    30         repo, _cnx = handler.get_repo_and_cnx()
    30         repo, _cnx = handler.get_repo_and_cnx()
    31         self.__class__.repo = repo
    31         self.__class__.repo = repo
    32         super(SQLGenAnnotatorTC, self).setUp()
    32         super(RQLAnnotatorTC, self).setUp()
    33 
    33 
    34     def test_0_1(self):
    34     def test_0_1(self):
    35         with self.admin_access.cnx() as cnx:
    35         with self.admin_access.cnx() as cnx:
    36             rqlst = self._prepare(cnx, 'Any SEN,RN,OEN WHERE X from_entity SE, '
    36             rqlst = self._prepare(cnx, 'Any SEN,RN,OEN WHERE X from_entity SE, '
    37                                   'SE eid 44, X relation_type R, R eid 139, '
    37                                   'SE eid 44, X relation_type R, R eid 139, '