Skip to content

Commit

Permalink
skip multilingual tests when not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Oct 18, 2023
1 parent 4a0ec94 commit 8e67319
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plone/restapi/tests/test_services_navroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
PLONE_RESTAPI_DX_FUNCTIONAL_TESTING,
PLONE_RESTAPI_DX_PAM_FUNCTIONAL_TESTING,
)
from plone.restapi.testing import PAM_INSTALLED
from plone.restapi.testing import RelativeSession
from zope.component import getMultiAdapter
from zope.interface import alsoProvides
Expand Down Expand Up @@ -117,7 +118,9 @@ def test_get_navroot_non_multilingual_navigation_root_content(self):
portal_state.navigation_root_url(),
)


@unittest.skipUnless(
PAM_INSTALLED, "plone.app.multilingual is installed by default only in Plone 5"
) # NOQA
class TestServicesNavrootMultilingual(unittest.TestCase):

layer = PLONE_RESTAPI_DX_PAM_FUNCTIONAL_TESTING
Expand Down

0 comments on commit 8e67319

Please sign in to comment.