Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dexterity instead of AT for PloneTestCase #50

Merged
merged 2 commits into from
Jul 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions src/plone/app/testing/bbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,19 @@ class PloneTestCaseFixture(testing.PloneSandboxLayer):
defaultBases = (testing.PLONE_FIXTURE,)

def setUpZope(self, app, configurationContext):
import Products.ATContentTypes
self.loadZCML(package=Products.ATContentTypes)

zope.installProduct(app, 'Products.Archetypes')
zope.installProduct(app, 'Products.ATContentTypes')
zope.installProduct(app, 'plone.app.blob')
zope.installProduct(app, 'plone.app.collection')
import plone.app.contenttypes
self.loadZCML(package=plone.app.contenttypes)

def setUpPloneSite(self, portal):
# restore default workflow
testing.applyProfile(portal, 'Products.CMFPlone:testfixture')

# add default content
testing.applyProfile(portal, 'Products.ATContentTypes:content')
testing.applyProfile(portal, 'plone.app.contenttypes:plone-content')

# add home folder for default test user
_createMemberarea(portal, testing.TEST_USER_ID)

def tearDownZope(self, app):
zope.uninstallProduct(app, 'plone.app.collection')
zope.uninstallProduct(app, 'plone.app.blob')
zope.uninstallProduct(app, 'Products.ATContentTypes')
zope.uninstallProduct(app, 'Products.Archetypes')


PTC_FIXTURE = PloneTestCaseFixture()
PTC_FUNCTIONAL_TESTING = testing.FunctionalTesting(
Expand Down