From 6572f25576e9246cc2c1379d3f65a1f059a0825d Mon Sep 17 00:00:00 2001 From: Gauthier Bastien <g.bastien@imio.be> Date: Fri, 15 Mar 2019 20:48:01 +0100 Subject: [PATCH] Make request available thru self.request --- plone/app/contentrules/tests/test_action_versioning.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plone/app/contentrules/tests/test_action_versioning.py b/plone/app/contentrules/tests/test_action_versioning.py index 2e522c3..709a332 100644 --- a/plone/app/contentrules/tests/test_action_versioning.py +++ b/plone/app/contentrules/tests/test_action_versioning.py @@ -21,6 +21,9 @@ def __init__(self, object): class TestVersioningAction(ContentRulesTestCase): + def afterSetUp(self): + self.request = self.layer['request'] + def testRegistered(self): element = getUtility(IRuleAction, name='plone.actions.Versioning') self.assertEqual('plone.actions.Versioning', element.addview)