From 89dfa1db45c537ba9e6e8039aef49f33d0d65c21 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Wed, 19 Jun 2024 21:48:44 +0200 Subject: [PATCH] PloneFixture: explicitly install plone.app.contenttypes:default. The `addPloneSite` factory in Plone 6.1 no longer installs this by default. See https://github.com/plone/Products.CMFPlone/issues/3961 --- news/3961.feature | 4 ++++ src/plone/app/testing/layers.py | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 news/3961.feature diff --git a/news/3961.feature b/news/3961.feature new file mode 100644 index 0000000..2c653dc --- /dev/null +++ b/news/3961.feature @@ -0,0 +1,4 @@ +PloneFixture: explicitly install plone.app.contenttypes:default. +The `addPloneSite` factory in Plone 6.1 no longer installs this by default. +[maurits] + diff --git a/src/plone/app/testing/layers.py b/src/plone/app/testing/layers.py index e1eb75b..6b787c3 100644 --- a/src/plone/app/testing/layers.py +++ b/src/plone/app/testing/layers.py @@ -70,7 +70,10 @@ class PloneFixture(Layer): ) # Extension profiles to be installed with site setup - extensionProfiles = ("plonetheme.barceloneta:default",) + extensionProfiles = ( + "plone.app.contenttypes:default", + "plonetheme.barceloneta:default", + ) # Layer lifecycle