Skip to content

Commit

Permalink
for tests, explicitly pull in pa.discussion and apply it's profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed May 15, 2024
1 parent 703088a commit cac5a3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/plone/restapi/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cac5a3a

Please sign in to comment.