from opencore.account import utils utils.turn_confirmation_on() from opencore.testing import dtfactory as dtf from opencore.testing import setup as oc_setup from opencore.testing.layer import OpencoreContent from zope.app.component.hooks import setSite, setHooks from zope.testing import doctest import unittest optionflags = doctest.ELLIPSIS import warnings; warnings.filterwarnings("ignore") def test_suite(): from Products.CMFCore.utils import getToolByName from Products.Five.utilities.marker import erase as noLongerProvides from Products.PloneTestCase import setup from Products.PloneTestCase.PloneTestCase import FunctionalTestCase from Testing.ZopeTestCase import installProduct from opencore.interfaces.workflow import IReadWorkflowPolicySupport from opencore.listen.featurelet import ListenFeaturelet from opencore.nui.indexing import authenticated_memberid from opencore.testing import utils from pprint import pprint from topp.featurelets.interfaces import IFeatureletSupporter from zope.component import getUtility from zope.interface import alsoProvides import pdb setup.setupPloneSite()
from Products.membrane.plugins.userfactory import MembraneUser from Products.OpenPlans.tests.openplanstestcase import OpenPlansTestCase from opencore.account.utils import turn_confirmation_on from opencore.member.interfaces import IHandleMemberWorkflow from opencore.testing import dtfactory as dtf from opencore.testing.layer import OpencoreContent, OpencoreContent from zope.app.component.hooks import setSite from zope.interface import implements from zope.testing import doctest import unittest #import warnings; warnings.filterwarnings("ignore") turn_confirmation_on() # should maybe go in the layer optionflags = doctest.ELLIPSIS class StubMemberWorkflow: """A stub to avoid depending on real members in some account tests. XXX Not sure where this should live? Move it if you have an idea. @@ maybe in opencore.testing??? """ implements(IHandleMemberWorkflow) def __init__(self, id, confirmed=False): self.confirmed = confirmed self.id = id def is_unconfirmed(self): return not self.confirmed