Changeset 10834 for main/waeup.futminna


Ignore:
Timestamp:
10 Dec 2013, 07:55:43 (11 years ago)
Author:
Henrik Bettermann
Message:

Adjust tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.futminna/trunk/src/waeup/futminna/interswitch/tests.py

    r10369 r10834  
    1717##
    1818import os
     19from datetime import datetime
    1920from zope.component import getUtility, createObject
    2021from zope.catalog.interfaces import ICatalog
     
    244245    def setUp(self):
    245246        super(InterswitchTestsApplicants, self).setUp()
     247        configuration = SessionConfiguration()
     248        configuration.academic_session = datetime.now().year - 2
     249        self.app['configuration'].addSessionConfiguration(configuration)
    246250        # Create at least one FUTMinna faculty
    247251        self.app['faculties']['CPGS'] = Faculty(code='ABC')
     
    258262        self.applicant.applicant_id = u'pg_anything'
    259263
     264    def test_interswitch_form(self):
    260265        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    261266        self.browser.open(self.manage_path)
     
    279284            self.browser.contents)
    280285        self.payment_url = self.browser.url
    281 
    282 
    283     def test_interswitch_form(self):
    284 
    285286        # Manager can access InterswitchForm
    286287        self.browser.getLink("CollegePAY", index=0).click()
Note: See TracChangeset for help on using the changeset viewer.