Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Jan 5, 2024
1 parent ef29b39 commit 07c1c33
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/codesyntax/distributions/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
applyProfile,
FunctionalTesting,
IntegrationTesting,
PLONE_FIXTURE
PLONE_FIXTURE,
PloneSandboxLayer,
)
from plone.testing import z2
Expand All @@ -21,27 +21,29 @@ def setUpZope(self, app, configurationContext):
# The z3c.autoinclude feature is disabled in the Plone fixture base
# layer.
import plone.app.dexterity

self.loadZCML(package=plone.app.dexterity)
import plone.restapi

self.loadZCML(package=plone.restapi)
self.loadZCML(package=codesyntax.distributions)

def setUpPloneSite(self, portal):
applyProfile(portal, 'codesyntax.distributions:default')
applyProfile(portal, "codesyntax.distributions:default")


CODESYNTAX_DISTRIBUTIONS_FIXTURE = CodesyntaxDistributionsLayer()


CODESYNTAX_DISTRIBUTIONS_INTEGRATION_TESTING = IntegrationTesting(
bases=(CODESYNTAX_DISTRIBUTIONS_FIXTURE,),
name='CodesyntaxDistributionsLayer:IntegrationTesting',
name="CodesyntaxDistributionsLayer:IntegrationTesting",
)


CODESYNTAX_DISTRIBUTIONS_FUNCTIONAL_TESTING = FunctionalTesting(
bases=(CODESYNTAX_DISTRIBUTIONS_FIXTURE,),
name='CodesyntaxDistributionsLayer:FunctionalTesting',
name="CodesyntaxDistributionsLayer:FunctionalTesting",
)


Expand All @@ -51,5 +53,5 @@ def setUpPloneSite(self, portal):
REMOTE_LIBRARY_BUNDLE_FIXTURE,
z2.ZSERVER_FIXTURE,
),
name='CodesyntaxDistributionsLayer:AcceptanceTesting',
name="CodesyntaxDistributionsLayer:AcceptanceTesting",
)

0 comments on commit 07c1c33

Please sign in to comment.