--- 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):