Products.CMFPlone/plip-1486-redirection: Update test for adding redirect to control panel
Stephan Klinger <jenkins-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Repository: Products.CMFPlone Branch: refs/heads/plip-1486-redirection Date: 2017-07-10T09:31:40+03:00 Author: Stephan Klinger (staeff) <[email protected]> Commit: https://github.com/plone/Products.CMFPlone/commit/4e8a0c23650ca8b81f96943a5c6593eb19008dfe Update test for adding redirect to control panel Files changed: M Products/CMFPlone/controlpanel/tests/test_controlpanel_browser_redirection.py diff --git a/Products/CMFPlone/controlpanel/tests/test_controlpanel_browser_redirection.py b/Products/CMFPlone/controlpanel/tests/test_controlpanel_browser_redirection.py index 2947c958c..8ce10ce26 100644 --- a/Products/CMFPlone/controlpanel/tests/test_controlpanel_browser_redirection.py +++ b/Products/CMFPlone/controlpanel/tests/test_controlpanel_browser_redirection.py @@ -58,10 +58,10 @@ def test_redirection_controlpanel_view(self): self.assertTrue(view()) def test_redirection_controlpanel_add_redirect(self): - - redirection_path = '/Member1' - target_path = '/Member' - storage_path = '/plone/Member1' + storage = getUtility(IRedirectionStorage) + redirection_path = '/alias-folder' + target_path = '/test-folder' + storage_path = '/plone/alias-folder' self.browser.open( "%s/@@redirection-controlpanel" % self.portal_url) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot