cubicweb/server/test/unittest_schemaserial.py
changeset 11768 b8b71dd09a2c
parent 11767 432f87a63057
equal deleted inserted replaced
11767:432f87a63057 11768:b8b71dd09a2c
    21 
    21 
    22 from yams import register_base_type, unregister_base_type
    22 from yams import register_base_type, unregister_base_type
    23 
    23 
    24 from cubicweb import Binary
    24 from cubicweb import Binary
    25 from cubicweb.schema import CubicWebSchemaLoader
    25 from cubicweb.schema import CubicWebSchemaLoader
    26 from cubicweb.devtools import TestServerConfiguration
    26 from cubicweb import devtools
    27 from cubicweb.devtools.testlib import BaseTestCase as TestCase, CubicWebTC
    27 from cubicweb.devtools.testlib import BaseTestCase as TestCase, CubicWebTC
    28 from cubicweb.server.schemaserial import (updateeschema2rql, updaterschema2rql, rschema2rql,
    28 from cubicweb.server.schemaserial import (updateeschema2rql, updaterschema2rql, rschema2rql,
    29                                           eschema2rql, rdef2rql, specialize2rql,
    29                                           eschema2rql, rdef2rql, specialize2rql,
    30                                           _erperms2rql as erperms2rql)
    30                                           _erperms2rql as erperms2rql)
    31 
    31 
    38     helper.TYPE_MAPPING['BabarTestType'] = 'TEXT'
    38     helper.TYPE_MAPPING['BabarTestType'] = 'TEXT'
    39     helper.TYPE_CONVERTERS['BabarTestType'] = lambda x: '"%s"' % x
    39     helper.TYPE_CONVERTERS['BabarTestType'] = lambda x: '"%s"' % x
    40 
    40 
    41     global schema, config
    41     global schema, config
    42     loader = CubicWebSchemaLoader()
    42     loader = CubicWebSchemaLoader()
    43     config = TestServerConfiguration('data-schemaserial', __file__)
    43     config = devtools.TestServerConfiguration('data-schemaserial', __file__)
    44     config.bootstrap_cubes()
    44     config.bootstrap_cubes()
    45     schema = loader.load(config)
    45     schema = loader.load(config)
    46 
    46 
    47 
    47 
    48 def tearDownModule(*args):
    48 def tearDownModule(*args):