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:
@@ -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'])
|
||||
|
Reference in New Issue
Block a user