Skip to content

Commit

Permalink
Merge pull request #154 from plone/fix-duplicate-install-of-contenttypes
Browse files Browse the repository at this point in the history
Avoid duplicate installation of plone.app.contenttypes profile
  • Loading branch information
davisagli authored Feb 11, 2024
2 parents 07ab782 + d83d87c commit 209853f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions news/154.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix duplicate installation of plone.app.contenttypes:default profile. @davisagli
12 changes: 2 additions & 10 deletions src/plone/app/robotframework/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class SimplePublicationLayer(Layer):

def setUp(self):
with ploneSite() as portal:
applyProfile(portal, "plone.app.contenttypes:default")
portal.portal_workflow.setDefaultChain("simple_publication_workflow")

def tearDown(self):
Expand All @@ -56,15 +55,8 @@ def tearDown(self):
SIMPLE_PUBLICATION_FIXTURE = SimplePublicationLayer()


class SimplePublicationWithTypesLayer(Layer):
defaultBases = (SIMPLE_PUBLICATION_FIXTURE,)

def setUp(self):
with ploneSite() as portal:
applyProfile(portal, "plone.app.contenttypes:default")


SIMPLE_PUBLICATION_WITH_TYPES_FIXTURE = SimplePublicationLayer()
SimplePublicationWithTypesLayer = SimplePublicationLayer
SIMPLE_PUBLICATION_WITH_TYPES_FIXTURE = SIMPLE_PUBLICATION_FIXTURE


class MockMailHostLayer(Layer):
Expand Down

0 comments on commit 209853f

Please sign in to comment.