Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

Commit

Permalink
Fix plone.testing zope layer imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotonen committed Oct 6, 2018
1 parent 96a50a2 commit e0289c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -53,5 +53,5 @@ def description():
'zope.component',
'Zope',
],
extras_require={'test': ['lxml', 'plone.testing']},
extras_require={'test': ['lxml', 'plone.testing[z2]']},
)
6 changes: 3 additions & 3 deletions src/plone/z3cform/tests.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from plone.testing import Layer
from plone.testing import layered
from plone.testing import zope
from plone.testing import z2
from plone.testing import zca
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from z3c.form.interfaces import IFormLayer
Expand Down Expand Up @@ -146,7 +146,7 @@ def getPath(filename):


class P3FLayer(Layer):
defaultBases = (zope.STARTUP,)
defaultBases = (z2.STARTUP,)

def setUp(self):
self['configurationContext'] = context = zca.stackConfigurationContext(
Expand All @@ -164,7 +164,7 @@ def tearDown(self):


P3F_FIXTURE = P3FLayer()
FUNCTIONAL_TESTING = zope.FunctionalTesting(
FUNCTIONAL_TESTING = z2.FunctionalTesting(
bases=(P3F_FIXTURE,), name="plone.z3cform:Functional"
)

Expand Down

0 comments on commit e0289c3

Please sign in to comment.