2009-10-16 02:42:08 +02:00
|
|
|
from Testing import ZopeTestCase as ztc
|
|
|
|
|
2009-05-18 16:16:48 +02:00
|
|
|
from Products.PloneTestCase import ptc
|
2009-10-16 02:42:08 +02:00
|
|
|
from Products.PloneTestCase import layer
|
|
|
|
from Products.Five import zcml
|
|
|
|
from Products.Five import fiveconfigure
|
2009-05-18 16:16:48 +02:00
|
|
|
|
2009-10-16 02:42:08 +02:00
|
|
|
ptc.setupPloneSite(
|
|
|
|
extension_profiles=('plone.app.discussion:default', )
|
|
|
|
)
|
2009-05-18 16:16:48 +02:00
|
|
|
|
2009-10-16 02:42:08 +02:00
|
|
|
class DiscussionLayer(layer.PloneSite):
|
|
|
|
"""Configure plone.app.discussion"""
|
2009-05-18 16:16:48 +02:00
|
|
|
|
2009-10-16 02:42:08 +02:00
|
|
|
@classmethod
|
|
|
|
def setUp(cls):
|
|
|
|
fiveconfigure.debug_mode = True
|
|
|
|
import plone.app.discussion
|
|
|
|
zcml.load_config("configure.zcml", plone.app.discussion)
|
|
|
|
fiveconfigure.debug_mode = False
|
|
|
|
ztc.installPackage("plone.app.discussion", quiet=1)
|
2009-05-18 16:16:48 +02:00
|
|
|
|
2009-10-16 02:42:08 +02:00
|
|
|
@classmethod
|
|
|
|
def tearDown(cls):
|
|
|
|
pass
|