Changeset 10941


Ignore:
Timestamp:
18 Jan 2014, 06:28:34 (11 years ago)
Author:
Henrik Bettermann
Message:

Fix test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/tests/test_browser.py

    r10594 r10941  
    3030from waeup.kwarapoly.testing import FunctionalLayer
    3131
     32session = datetime.datetime.now().year - 2
     33ndftcontainer_name = u'ndft%s' % session
    3234
    3335class ApplicantUITest(FunctionalTestCase):
     
    5658        self.ndftcontainer = ApplicantsContainer()
    5759        self.ndftcontainer.mode = 'create'
    58         self.ndftcontainer.code = u'ndft2011'
     60        self.ndftcontainer.code = ndftcontainer_name
    5961        self.ndftcontainer.prefix = u'ndft'
    6062        self.ndftcontainer.application_category = u'ndft'
    61         self.ndftcontainer.year = 2011
     63        self.ndftcontainer.year = session
    6264        self.ndftcontainer.application_fee = 300.0
    63         self.ndftcontainer.title = u'This is the ndft2011 container'
    64         self.app['applicants']['ndft2011'] = self.ndftcontainer
     65        #self.ndftcontainer.title = u'This is the %s container' % ndftcontainer_name
     66        self.app['applicants'][ndftcontainer_name] = self.ndftcontainer
    6567
    6668        delta = datetime.timedelta(days=10)
     
    8486        ndftapplicant.firstname = u'Anna'
    8587        ndftapplicant.lastname = u'Post'
    86         self.app['applicants']['ndft2011'].addApplicant(ndftapplicant)
     88        self.app['applicants'][ndftcontainer_name].addApplicant(ndftapplicant)
    8789        self.ndftapplication_number = ndftapplicant.application_number
    88         self.ndftapplicant = self.app['applicants']['ndft2011'][
     90        self.ndftapplicant = self.app['applicants'][ndftcontainer_name][
    8991            self.ndftapplication_number]
    90         self.ndftapplicant_path = ('http://localhost/app/applicants/ndft2011/%s'
    91             % self.ndftapplication_number)
     92        self.ndftapplicant_path = ('http://localhost/app/applicants/%s/%s'
     93            % (ndftcontainer_name, self.ndftapplication_number))
    9294
    9395        self.browser = Browser()
Note: See TracChangeset for help on using the changeset viewer.