cubicweb/test/unittest_spa2rql.py
changeset 11768 b8b71dd09a2c
parent 11767 432f87a63057
child 11769 f5b815f67ce2
equal deleted inserted replaced
11767:432f87a63057 11768:b8b71dd09a2c
    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 import unittest
    18 import unittest
    19 
    19 
    20 from logilab.common.testlib import TestCase, unittest_main
    20 from cubicweb import devtools
    21 from cubicweb.devtools import TestServerConfiguration
       
    22 from cubicweb.xy import xy
    21 from cubicweb.xy import xy
    23 
    22 
    24 SKIPCAUSE = None
    23 SKIPCAUSE = None
    25 try:
    24 try:
    26     from cubicweb.spa2rql import Sparql2rqlTranslator
    25     from cubicweb.spa2rql import Sparql2rqlTranslator
    38 
    37 
    39     schema = None
    38     schema = None
    40 
    39 
    41     @classmethod
    40     @classmethod
    42     def setUpClass(cls):
    41     def setUpClass(cls):
    43         config = TestServerConfiguration('data', __file__)
    42         config = devtools.TestServerConfiguration('data', __file__)
    44         config.bootstrap_cubes()
    43         config.bootstrap_cubes()
    45         cls.schema = config.load_schema()
    44         cls.schema = config.load_schema()
    46 
    45 
    47     def setUp(self):
    46     def setUp(self):
    48         self.tr = Sparql2rqlTranslator(self.schema)
    47         self.tr = Sparql2rqlTranslator(self.schema)