diff --git a/setup.py b/setup.py index 6893746cd7..c73ef8c9e0 100644 --- a/setup.py +++ b/setup.py @@ -43,6 +43,7 @@ def read(filename): "collective.MockMailHost", "plone.app.caching", "plone.app.contenttypes[test]", + "plone.app.discussion[test]", "plone.app.testing", "plone.api", "requests", diff --git a/src/plone/restapi/testing.py b/src/plone/restapi/testing.py index 7ed7c0358d..adc4d184b3 100644 --- a/src/plone/restapi/testing.py +++ b/src/plone/restapi/testing.py @@ -135,6 +135,9 @@ def setUpPloneSite(self, portal): set_supported_languages(portal) + if portal.portal_setup.profileExists("plone.app.discussion:default"): + applyProfile(portal, "plone.app.discussion:default") + applyProfile(portal, "plone.restapi:default") applyProfile(portal, "plone.restapi:testing") add_catalog_indexes(portal, DX_TYPES_INDEXES)