plone.app.discussion/plone/app/discussion/tests
Maurits van Rees 266d87b3b9
Test-only fix: normalize white space when comparing output of comment.getText().
Needed to not fail with newer `plone.outputfilters` from this PR: https://github.com/plone/plone.outputfilters/pull/49
Comments go through the outputfilters, and the new branch calls `soup.prettify()` from `Beautifulsoup`, leading to more white space.
Sample test failures on Jenkins, see https://jenkins.plone.org/job/plip-plip-image-srcsets-3.8/5/#showFailuresLink

```
'<p>\n Go to http://www.plone.org\n</p>' != '<p>Go to http://www.plone.org</p>'
- <p>
-  Go to http://www.plone.org
? ^                          ^
+ <p>Go to http://www.plone.org</p>? ^^^                          ^^^^
- </p>

  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/home/jenkins/.buildout/eggs/cp38/plone.app.discussion-4.0.0a7-py3.8.egg/plone/app/discussion/tests/test_comment.py", line 180, in test_getText_doesnt_link
    self.assertEqual(
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 912, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 1292, in assertMultiLineEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 753, in fail
    raise self.failureException(msg)
```
2022-06-10 13:50:16 +02:00
..
robot Make compatible with robotframework 3-5. 2022-05-02 23:03:24 +02:00
__init__.py check in some skeletal code + notes, nothing concrete or working yet 2009-05-11 16:52:16 +00:00
collection-integration-test.txt make doctest syntax py3 compatible 2018-01-26 11:11:50 +01:00
functional_test_comment_review_workflow.txt Removed a few more unicode literals. 2022-05-02 17:12:04 +02:00
functional_test_comments.txt fix tests 2021-02-17 19:36:26 +01:00
test_catalog.py find -name "*.py" -exec pyupgrade --py3-only --py37-plus {} + 2022-05-01 23:14:41 +02:00
test_comment.py Test-only fix: normalize white space when comparing output of comment.getText(). 2022-06-10 13:50:16 +02:00
test_comments_viewlet.py add newsfile 2022-05-02 00:43:21 +02:00
test_contentrules.py find -name "*.py" -exec pyupgrade --py3-only --py37-plus {} + 2022-05-01 23:14:41 +02:00
test_controlpanel.py find -name "*.py" -exec pyupgrade --py3-only --py37-plus {} + 2022-05-01 23:14:41 +02:00
test_conversation.py use plone.base and remove dependencies to CMFPlone 2022-05-02 00:39:34 +02:00
test_events.py use plone.base and remove dependencies to CMFPlone 2022-05-02 00:39:34 +02:00
test_functional.py use plone.base and remove dependencies to CMFPlone 2022-05-02 00:39:34 +02:00
test_indexers.py use plone.base and remove dependencies to CMFPlone 2022-05-02 00:39:34 +02:00
test_moderation_multiple_state_view.py use plone.base and remove dependencies to CMFPlone 2022-05-02 00:39:34 +02:00
test_moderation_view.py use plone.base and remove dependencies to CMFPlone 2022-05-02 00:39:34 +02:00
test_notifications.py Removed a few more unicode literals. 2022-05-02 17:12:04 +02:00
test_robot.py use plone.base and remove dependencies to CMFPlone 2022-05-02 00:39:34 +02:00
test_workflow.py use plone.base and remove dependencies to CMFPlone 2022-05-02 00:39:34 +02:00