server/test/unittest_migractions.py
branchstable
changeset 4689 4eb1f4490538
parent 4681 5f72584ab1d7
child 4691 ae468fae9965
equal deleted inserted replaced
4688:6ea3a3b21c6a 4689:4eb1f4490538
     7 from os.path import join
     7 from os.path import join
     8 
     8 
     9 from logilab.common.testlib import TestCase, unittest_main
     9 from logilab.common.testlib import TestCase, unittest_main
    10 
    10 
    11 from cubicweb import ConfigurationError
    11 from cubicweb import ConfigurationError
    12 from cubicweb.devtools.testlib import CubicWebTC, get_versions
    12 from cubicweb.devtools.testlib import CubicWebTC
    13 from cubicweb.schema import CubicWebSchemaLoader
    13 from cubicweb.schema import CubicWebSchemaLoader
    14 from cubicweb.server.sqlutils import SQL_PREFIX
    14 from cubicweb.server.sqlutils import SQL_PREFIX
    15 from cubicweb.server.repository import Repository
       
    16 from cubicweb.server.migractions import *
    15 from cubicweb.server.migractions import *
    17 
       
    18 orig_get_versions = Repository.get_versions
       
    19 
       
    20 def setup_module(*args):
       
    21     Repository.get_versions = get_versions
       
    22 
       
    23 def teardown_module(*args):
       
    24     Repository.get_versions = orig_get_versions
       
    25 
    16 
    26 
    17 
    27 class MigrationCommandsTC(CubicWebTC):
    18 class MigrationCommandsTC(CubicWebTC):
    28 
    19 
    29     @classmethod
    20     @classmethod