server/test/unittest_migractions.py
changeset 4103 dc04bede3502
parent 4100 ca9e014012ef
child 4191 01638461d4b0
equal deleted inserted replaced
4102:5ba6df5fcb07 4103:dc04bede3502
   285         migrschema['titre'].rdefs[('Personne', 'String')].order = 7
   285         migrschema['titre'].rdefs[('Personne', 'String')].order = 7
   286         migrschema['adel'].rdefs[('Personne', 'String')].order = 6
   286         migrschema['adel'].rdefs[('Personne', 'String')].order = 6
   287         migrschema['ass'].rdefs[('Personne', 'String')].order = 5
   287         migrschema['ass'].rdefs[('Personne', 'String')].order = 5
   288         migrschema['Personne'].description = 'blabla bla'
   288         migrschema['Personne'].description = 'blabla bla'
   289         migrschema['titre'].description = 'usually a title'
   289         migrschema['titre'].description = 'usually a title'
   290         migrschema['titre'].rdefs[('Personne', 'String')]['description'] = 'title for this person'
   290         migrschema['titre'].rdefs[('Personne', 'String')].description = 'title for this person'
   291         self.mh.cmd_sync_schema_props_perms(commit=False)
   291         self.mh.cmd_sync_schema_props_perms(commit=False)
   292 
   292 
   293         self.assertEquals(cursor.execute('Any D WHERE X name "Personne", X description D')[0][0],
   293         self.assertEquals(cursor.execute('Any D WHERE X name "Personne", X description D')[0][0],
   294                           'blabla bla')
   294                           'blabla bla')
   295         self.assertEquals(cursor.execute('Any D WHERE X name "titre", X description D')[0][0],
   295         self.assertEquals(cursor.execute('Any D WHERE X name "titre", X description D')[0][0],