server/test/unittest_migractions.py
branchstable
changeset 4691 ae468fae9965
parent 4689 4eb1f4490538
child 4763 81b0df087375
--- a/server/test/unittest_migractions.py	Wed Feb 24 11:53:36 2010 +0100
+++ b/server/test/unittest_migractions.py	Wed Feb 24 12:57:30 2010 +0100
@@ -34,7 +34,7 @@
     @classmethod
     def _refresh_repo(cls):
         super(MigrationCommandsTC, cls)._refresh_repo()
-        cls.repo.schema = cls.vreg.schema = deepcopy(cls.origschema)
+        cls.repo.set_schema(deepcopy(cls.origschema), resetvreg=False)
 
     def setUp(self):
         CubicWebTC.setUp(self)