Commit 2de60fc5 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[test] Stop using lgc.testlib in unittest_migractions

parent 2dd0dcb2e5f9
......@@ -24,7 +24,6 @@ from datetime import date
from contextlib import contextmanager
import tempfile
from logilab.common.testlib import unittest_main, Tags, tag
from logilab.common import tempattr
from yams.constraints import UniqueConstraint
......@@ -71,8 +70,6 @@ class MigrationTC(CubicWebTC):
configcls = MigrationConfig
tags = CubicWebTC.tags | Tags(('server', 'migration', 'migractions'))
def _init_repo(self):
super(MigrationTC, self)._init_repo()
# we have to read schema from the database to get eid for schema entities
......@@ -510,7 +507,6 @@ class MigrationCommandsTC(MigrationTC):
newconstraints = rdef.constraints
self.assertEqual(len(newconstraints), 0)
def test_sync_schema_props_perms(self):
with as (cnx, mh):
nbrqlexpr_start = cnx.execute('Any COUNT(X) WHERE X is RQLExpression')[0][0]
......@@ -653,7 +649,6 @@ class MigrationCommandsTC(MigrationTC):
mh.cmd_set_size_constraint('CWEType', 'description', None)
def test_add_drop_cube_and_deps(self):
with as (cnx, mh):
schema = self.repo.schema
......@@ -711,8 +706,6 @@ class MigrationCommandsTC(MigrationTC):
# next test may fail complaining of missing tables
def test_add_drop_cube_no_deps(self):
with as (cnx, mh):
cubes = set(self.config.cubes())
......@@ -738,7 +731,6 @@ class MigrationCommandsTC(MigrationTC):
self.assertEqual(str(cm.exception), "can't remove cube file, used as a dependency")
def test_introduce_base_class(self):
with as (cnx, mh):
......@@ -1013,4 +1005,5 @@ class MigrationCommandsComputedTC(MigrationTC):
if __name__ == '__main__':
import unittest
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment