[test/migractions] work around drop_cube not deleting final etypes
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 21 Mar 2016 17:10:08 +0100
changeset 11232 25ec9be5f305
parent 11231 b0dcbc7cf410
child 11237 f32134dd0067
[test/migractions] work around drop_cube not deleting final etypes Closes #10096736
cubicweb/server/test/unittest_migractions.py
cubicweb/server/test/unittest_repository.py
--- a/cubicweb/server/test/unittest_migractions.py	Mon Mar 21 17:09:41 2016 +0100
+++ b/cubicweb/server/test/unittest_migractions.py	Mon Mar 21 17:10:08 2016 +0100
@@ -302,6 +302,7 @@
                 self.assertEqual(fields['%snum' % SQL_PREFIX], ('numeric', None)) # XXX
             finally:
                 mh.cmd_drop_cube('fakecustomtype')
+                mh.drop_entity_type('Numeric')
 
     def test_add_drop_entity_type(self):
         with self.mh() as (cnx, mh):
--- a/cubicweb/server/test/unittest_repository.py	Mon Mar 21 17:09:41 2016 +0100
+++ b/cubicweb/server/test/unittest_repository.py	Mon Mar 21 17:10:08 2016 +0100
@@ -362,7 +362,6 @@
         helper.TYPE_CONVERTERS.pop('BabarTestType', None)
         super(SchemaDeserialTC, cls).tearDownClass()
 
-    @unittest.skip('Numeric final type is not properly dropped')
     def test_deserialization_base(self):
         """Check the following deserialization