Move application of custom workflow to test_acquisition.py...

...so it doesn't interfere with other test in the layer.
This commit is contained in:
Kees Hink 2013-05-10 13:26:30 +02:00
parent 66d355544f
commit 6e9b32254e
2 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,4 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<object name="portal_workflow" meta_type="CMF Workflow Tool"> <object name="portal_workflow" meta_type="CMF Workflow Tool">
<object name="comment_workflow_acquired_view" meta_type="Workflow"/> <object name="comment_workflow_acquired_view" meta_type="Workflow"/>
<bindings>
<type type_id="Discussion Item">
<bound-workflow workflow_id="comment_workflow_acquired_view"/>
</type>
</bindings>
</object> </object>

View File

@ -41,6 +41,12 @@ class DexterityAcquisitionTest(unittest.TestCase):
setRoles(self.portal, TEST_USER_ID, ['Manager']) setRoles(self.portal, TEST_USER_ID, ['Manager'])
self.wftool = getToolByName(self.portal, 'portal_workflow') self.wftool = getToolByName(self.portal, 'portal_workflow')
# Use customized workflow for comments.
self.wftool.setChainForPortalTypes(
['Discussion Item'],
(comment_workflow_acquired_view,),
)
# Use one_state_workflow for Document and sample_content_type, # Use one_state_workflow for Document and sample_content_type,
# so they're always published. # so they're always published.
self.wftool.setChainForPortalTypes( self.wftool.setChainForPortalTypes(