CLI upgrade_attachment_schema: also remove attachments form_schema

Previously they would have {'attachments': {'visible': False}}, but this
is no longer needed.
This commit is contained in:
2016-10-27 10:34:01 +02:00
parent 964e807721
commit fe4d70c0d1
2 changed files with 13 additions and 3 deletions

View File

@@ -337,6 +337,7 @@ class UpgradeAttachmentSchemaTest(AbstractNodeReplacementTest):
nt_asset = get_node_type(dbproj, 'asset')
self.assertEqual(node_type_asset['dyn_schema']['attachments'],
nt_asset['dyn_schema']['attachments'])
self.assertNotIn('attachments', nt_asset['form_schema'])
# Test that the permissions set previously are still there.
self.assertEqual([group_perms], nt_asset['permissions']['groups'])