-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update test: plone.app.discussion #843
Conversation
@ksuess thanks for creating this Pull Request and help improve Plone! To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass. Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:
With this simple comment all the jobs will be started automatically. Happy hacking! |
1 similar comment
@ksuess thank you for your contribution. The code looks fine to me. Though, could you please elaborate on how you ran into this issue? I would like to understand the rationale behind this change. Did you create a test layer that includes both plone.restapi and plone.app.discussion? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what is the need to to change the test but the method used is deprecated (to my knowledge).
@@ -93,7 +93,7 @@ def test_endpoint_inlines_vocabularies(self): | |||
u"published": {u"title": u"Published with accent \xe9 [published]"}, | |||
u"visible": {u"title": u"Public draft [visible]"}, | |||
} | |||
self.assertEqual(expected_vocab_values, idx["values"]) | |||
self.assertDictContainsSubset(expected_vocab_values, idx["values"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for reviewing. I'll fix this as soon as the main PR plone/plone.app.discussion#165 is reviewed and approved.
Comments moderation: Additional workflow with states pending, approved, rejected and spam plone/plone.app.discussion#165 Testing with plus
|
Ideally, we would keep the plone.app.discussion workflows out of the Plone core testing layer. Though, I guess this is beyond the scope of this. If anybody wants to work on it this would be a worthwhile goal... |
Obsolete. |
Reopened pull request: tests need to take plone.app.discussion workflow stati into account, even for replaced pull request in plone.app.discussion plone/plone.app.discussion#166 |
@ksuess thanks for creating this Pull Request and help improve Plone! To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass. Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:
With this simple comment all the jobs will be started automatically. Happy hacking! |
398fab6
to
c6d631d
Compare
There seems to be a genuine failure on plone/app/discussion/tests/functional_test_comments.txt |
c6d631d
to
8f3550c
Compare
plone.app.discussion introduces an additional workflow. This change takes the additional workflow states into account.
replace deprecated assertDictContainsSubset with assertLessEqual on dictionary items()
8f3550c
to
1813e19
Compare
@jenkins-plone-org please run jobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
IMO this can be merged also without the other PRs related to the ongoing work in plone.app.discussion.
This indeed seems ready for merge, even without merging the related @plone/restapi-team When convenient, can you merge? |
IMO a minimal change which absolutely makes sense. |
plone.app.discussion introduces an additional workflow. This change takes the additional workflow states into account.