From bd615c65fa95a0cbb765b2bb913171b7606d684d Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Tue, 2 Apr 2024 14:47:25 +0200 Subject: [PATCH] skip test on plone5 --- .../volto/tests/test_site_controlpanel_custom.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/redturtle/volto/tests/test_site_controlpanel_custom.py b/src/redturtle/volto/tests/test_site_controlpanel_custom.py index 9090ded..459feed 100644 --- a/src/redturtle/volto/tests/test_site_controlpanel_custom.py +++ b/src/redturtle/volto/tests/test_site_controlpanel_custom.py @@ -11,6 +11,13 @@ from transaction import commit from zope.component import getUtility +try: + from Products.CMFPlone.factory import _IMREALLYPLONE5 # noqa +except ImportError: + PLONE5 = False +else: + PLONE5 = True + import base64 import os import unittest @@ -131,6 +138,7 @@ def test_endpoint_store_logo_dimensions_if_saved(self): }, ) + @unittest.skipIf(PLONE5, "Before Plone 6 there wasn't favicon in site settings") def test_endpoint_store_favicon_dimensions_if_saved(self): image_file = os.path.join(os.path.dirname(__file__), "favicon.ico") with open(image_file, "rb") as f: