[test] Stop using lgc.testlib in unittest_migractions
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 03 Nov 2017 15:26:04 +0100
changeset 12238 6ed86e0b0222
parent 12237 2dd0dcb2e5f9
child 12239 19aae64c4010
[test] Stop using lgc.testlib in unittest_migractions
cubicweb/server/test/unittest_migractions.py
--- a/cubicweb/server/test/unittest_migractions.py	Fri Nov 03 16:31:59 2017 +0100
+++ b/cubicweb/server/test/unittest_migractions.py	Fri Nov 03 15:26:04 2017 +0100
@@ -24,7 +24,6 @@
 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 @@
 
     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 @@
             newconstraints = rdef.constraints
             self.assertEqual(len(newconstraints), 0)
 
-    @tag('longrun')
     def test_sync_schema_props_perms(self):
         with self.mh() as (cnx, mh):
             nbrqlexpr_start = cnx.execute('Any COUNT(X) WHERE X is RQLExpression')[0][0]
@@ -653,7 +649,6 @@
             finally:
                 mh.cmd_set_size_constraint('CWEType', 'description', None)
 
-    @tag('longrun')
     def test_add_drop_cube_and_deps(self):
         with self.mh() as (cnx, mh):
             schema = self.repo.schema
@@ -711,8 +706,6 @@
                 # next test may fail complaining of missing tables
                 cnx.commit()
 
-
-    @tag('longrun')
     def test_add_drop_cube_no_deps(self):
         with self.mh() as (cnx, mh):
             cubes = set(self.config.cubes())
@@ -738,7 +731,6 @@
                 mh.cmd_drop_cube('file')
             self.assertEqual(str(cm.exception), "can't remove cube file, used as a dependency")
 
-    @tag('longrun')
     def test_introduce_base_class(self):
         with self.mh() as (cnx, mh):
             mh.cmd_add_entity_type('Para')
@@ -1013,4 +1005,5 @@
 
 
 if __name__ == '__main__':
-    unittest_main()
+    import unittest
+    unittest.main()