diff --git a/src/redturtle/volto/tests/test_blocks_linkintegrity.py b/src/redturtle/volto/tests/test_blocks_linkintegrity.py index e219c67..579e85f 100644 --- a/src/redturtle/volto/tests/test_blocks_linkintegrity.py +++ b/src/redturtle/volto/tests/test_blocks_linkintegrity.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +from importlib import import_module from plone import api from plone.app.testing import setRoles from plone.app.testing import TEST_USER_ID @@ -9,6 +10,10 @@ import unittest +HAS_PLONE_6 = getattr( + import_module("Products.CMFPlone.factory"), "PLONE60MARKER", False +) + class TestBlocksLinkIntegrity(unittest.TestCase): layer = REDTURTLE_VOLTO_FUNCTIONAL_TESTING @@ -704,6 +709,10 @@ def test_count_down_countdown_text_link_integrity(self): self.assertEqual(reference["sources"][0]["uid"], self.document.UID()) self.assertEqual(reference["target"]["uid"], self.ref.UID()) + @unittest.skipIf( + not HAS_PLONE_6, + "This test is only intended to run for Plone 6 and DX site root enabled", + ) def test_linkintegrity_works_also_on_site_root(self): self.assertEqual(self.get_references(), []) self.portal.blocks = {