def setUp(self):
     portal = self.layer['portal']
     self.portal = portal
     setRoles(portal, TEST_USER_ID, ['Manager'])
     portal.invokeFactory(type_name='Event', id='event1', title='Event1')
     self.obj = portal['event1']
     set_env_timezone(TZNAME)
Exemple #2
0
    def setUp(self):
        portal = self.layer['portal']
        self.portal = portal
        self.request = self.layer['request']
        setRoles(self.portal, TEST_USER_ID, ['Manager'])

        set_env_timezone(TZNAME)
        set_timezone(TZNAME)
    def setUp(self):
        portal = self.layer['portal']
        self.portal = portal
        self.request = self.layer['request']
        setRoles(self.portal, TEST_USER_ID, ['Manager'])

        set_env_timezone(TZNAME)
        set_timezone(TZNAME)
Exemple #4
0
 def setUp(self):
     portal = self.layer['portal']
     self.portal = portal
     self.request = self.layer['request']
     setRoles(self.portal, TEST_USER_ID, ['Manager'])
     wftool = getToolByName(self.portal, "portal_workflow")
     wftool.setDefaultChain("simple_publication_workflow")
     set_env_timezone(TZNAME)
     set_timezone(TZNAME)
 def setUp(self):
     portal = self.layer['portal']
     self.portal = portal
     self.request = self.layer['request']
     setRoles(self.portal, TEST_USER_ID, ['Manager'])
     wftool = getToolByName(self.portal, "portal_workflow")
     wftool.setDefaultChain("simple_publication_workflow")
     set_env_timezone(TZNAME)
     set_timezone(TZNAME)
    def setUp(self):
        portal = self.layer['portal']
        self.portal = portal
        self.request = self.layer['request']
        self.wft = getToolByName(self.portal, 'portal_workflow')
        setRoles(portal, TEST_USER_ID, ['Manager'])
        setHooks()
        setSite(portal)

        set_env_timezone(TZNAME)
        set_timezone(TZNAME)
Exemple #7
0
    def setUp(self):
        self.portal = self.layer['portal']
        self.request = self.layer['request']

        set_browserlayer(self.request)
        set_env_timezone(TZNAME)
        set_timezone(TZNAME)

        now = patched_now()

        yesterday = now - datetime.timedelta(days=1)

        setRoles(self.portal, TEST_USER_ID, ['Manager'])
        self.daily = createContentInContainer(
            self.portal,
            'plone.app.event.dx.event',
            id='daily',
            title=u'Daily Event',
            start=now,
            end=now + datetime.timedelta(hours=1),
            location=u'Vienna',
            recurrence='RRULE:FREQ=DAILY;COUNT=4',
        )
        self.interval = createContentInContainer(
            self.portal,
            'plone.app.event.dx.event',
            id='interval',
            title=u'Interval Event',
            start=yesterday,
            end=yesterday + datetime.timedelta(hours=1),
            location=u'Halle',
            recurrence='RRULE:FREQ=DAILY;INTERVAL=2;COUNT=5',
        )

        self.now = now
        self.yesterday = yesterday
    def setUp(self):
        self.portal = self.layer['portal']
        self.request = self.layer['request']

        set_browserlayer(self.request)
        set_env_timezone(TZNAME)
        set_timezone(TZNAME)

        now = patched_now()

        yesterday = now - datetime.timedelta(days=1)

        setRoles(self.portal, TEST_USER_ID, ['Manager'])
        self.daily = createContentInContainer(
            self.portal,
            'plone.app.event.dx.event',
            id='daily',
            title=u'Daily Event',
            start=now,
            end=now + datetime.timedelta(hours=1),
            location=u'Vienna',
            recurrence='RRULE:FREQ=DAILY;COUNT=4',
        )
        self.interval = createContentInContainer(
            self.portal,
            'plone.app.event.dx.event',
            id='interval',
            title=u'Interval Event',
            start=yesterday,
            end=yesterday + datetime.timedelta(hours=1),
            location=u'Halle',
            recurrence='RRULE:FREQ=DAILY;INTERVAL=2;COUNT=5',
        )

        self.now = now
        self.yesterday = yesterday
Exemple #9
0
 def setUp(self):
     set_env_timezone(TZNAME)
Exemple #10
0
 def setUp(self):
     self.portal = self.layer['portal']
     set_env_timezone('UTC')
     set_timezone('UTC')
Exemple #11
0
 def setUp(self):
     self.portal = self.layer['portal']
     self.browser = Browser(self.layer['app'])
     set_env_timezone('UTC')
     set_timezone('UTC')
 def tearDown(self):
     set_env_timezone(self.orig_tz)
 def setUp(self):
     self.orig_tz = set_env_timezone(TEST_TIMEZONE)
 def setUp(self):
     set_env_timezone(TZNAME)
 def setUp(self):
     self.portal = self.layer["portal"]
     set_env_timezone("UTC")
     set_timezone("UTC")
Exemple #16
0
 def setUp(self):
     self.orig_tz = set_env_timezone(TEST_TIMEZONE)
 def setUp(self):
     set_env_timezone(TEST_TIMEZONE)
Exemple #18
0
 def setUp(self):
     self.portal = self.layer['portal']
     self.browser = Browser(self.layer['app'])
     set_env_timezone('UTC')
     set_timezone('UTC')
Exemple #19
0
 def tearDown(self):
     set_env_timezone(self.orig_tz)
Exemple #20
0
 def setUp(self):
     set_env_timezone(TEST_TIMEZONE)