Skip to content

Commit

Permalink
skip test on plone5
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Apr 2, 2024
1 parent 8154074 commit bd615c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/redturtle/volto/tests/test_site_controlpanel_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit bd615c6

Please sign in to comment.