server/test/unittest_hooks.py
branchstable
changeset 2251 799ff50ddfe8
parent 1990 59507a12a7f4
child 2453 0faf7b5cdc71
--- a/server/test/unittest_hooks.py	Fri Jul 03 10:25:22 2009 +0200
+++ b/server/test/unittest_hooks.py	Fri Jul 03 10:26:19 2009 +0200
@@ -242,7 +242,7 @@
 
 
 class SchemaModificationHooksTC(RepositoryBasedTC):
-    copy_schema = True
+    #copy_schema = True
 
     def setUp(self):
         if not hasattr(self, '_repo'):
@@ -471,6 +471,10 @@
         self.commit()
         # should not be able anymore to add personne without prenom
         self.assertRaises(ValidationError, self.execute, 'INSERT Personne X: X nom "toto"')
+        self.execute('SET DEF cardinality "?1" '
+                     'WHERE DEF relation_type RT, DEF from_entity E,'
+                     'RT name "prenom", E name "Personne"')
+        self.commit()
 
 
 class WorkflowHooksTC(RepositoryBasedTC):