Skip to content

Commit

Permalink
Fixed tests with newer plone.app.discussion.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Jan 14, 2017
1 parent c390f0d commit e325c93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ New features:

Bug fixes:

- Fixed workflow tests for new ``comment_one_state_workflow``. [maurits]

- Fixed sometimes failing search order tests. [maurits]

- Load some Products.CMFPlone.patches earlier, instead of in our initialize method.
Expand Down
4 changes: 2 additions & 2 deletions Products/CMFPlone/tests/testPortalCreation.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,10 @@ def testMemberHasViewGroupsPermission(self):
self.assertTrue(member_has_permission['selected'])

def testDiscussionItemWorkflow(self):
# By default the discussion item has the one_state_workflow
# By default the discussion item has the comment_one_state_workflow
self.assertEqual(
self.workflow.getChainForPortalType('Discussion Item'),
('one_state_workflow',))
('comment_one_state_workflow',))

def testFolderHasFolderListingView(self):
# Folder type should allow 'folder_listing'
Expand Down
1 change: 1 addition & 0 deletions Products/CMFPlone/tests/testWorkflowTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class IDocument(Interface):
'one_state_workflow': ('published',),
'plone_workflow': ('pending', 'private', 'published', 'visible',),
'simple_publication_workflow': ('private', 'published', 'pending',),
'comment_one_state_workflow': ('published',),
'comment_review_workflow': ('pending', 'published',)
}
# then we join all states into one master list
Expand Down

0 comments on commit e325c93

Please sign in to comment.