From bf41101c864b308021ff2090c7ec7ff9bc858102 Mon Sep 17 00:00:00 2001 From: tschorr Date: Tue, 11 Feb 2020 18:49:57 +0100 Subject: [PATCH] fix test for Plone > 5; deprecate Plone < 5 --- plone/app/discussion/tests/functional_test_comments.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plone/app/discussion/tests/functional_test_comments.txt b/plone/app/discussion/tests/functional_test_comments.txt index 36ad8a1..2ff35a3 100644 --- a/plone/app/discussion/tests/functional_test_comments.txt +++ b/plone/app/discussion/tests/functional_test_comments.txt @@ -269,9 +269,8 @@ Use the Plone control panel to enable comment editing. Extract the edit comment url from the first "edit comment" button - >>> from Products.CMFPlone import __version__ >>> browser.open(urldoc1) - >>> url = __version__[0] == '5' and browser.getLink(url='@@edit-comment').url or browser.getForm(name='edit', index=0).action + >>> url = browser.getLink(url='@@edit-comment').url >>> '@@edit-comment' in url True @@ -299,7 +298,7 @@ Check it ain't so. Opening the edit comment view, then cancel, does nothing. - >>> url = __version__[0] == '5' and browser.getLink(url='@@edit-comment').url or browser.getForm(name='edit', index=0).action + >>> url = browser.getLink(url='@@edit-comment').url >>> '@@edit-comment' in url True >>> browser.open(url)