Changeset 10875 for main/waeup.fceokene/trunk/src/waeup/fceokene/applicants
- Timestamp:
- 7 Jan 2014, 07:41:08 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/tests/test_browser.py
r10570 r10875 30 30 from waeup.fceokene.testing import FunctionalLayer 31 31 32 session = datetime.now().year - 2 32 33 33 34 class ApplicantUITest(FunctionalTestCase): … … 56 57 self.beccontainer = ApplicantsContainer() 57 58 self.beccontainer.mode = 'create' 58 self.beccontainer.code = u'bec 2011'59 self.beccontainer.code = u'bec%s' % session 59 60 self.beccontainer.prefix = u'bec' 60 61 self.beccontainer.application_category = u'bec' 61 self.beccontainer.year = 201162 self.beccontainer.year = session 62 63 self.beccontainer.application_fee = 300.0 63 self.beccontainer.title = u'This is the bec 2011 container'64 self.app['applicants'][ 'bec2011'] = self.beccontainer64 self.beccontainer.title = u'This is the bec%s container' % session 65 self.app['applicants'][self.beccontainer.code] = self.beccontainer 65 66 delta = datetime.timedelta(days=10) 66 67 self.beccontainer.startdate = datetime.datetime.now(pytz.utc) - delta … … 70 71 self.putmecontainer = ApplicantsContainer() 71 72 self.putmecontainer.mode = 'create' 72 self.putmecontainer.code = u'putme 2011'73 self.putmecontainer.code = u'putme%s' % session 73 74 self.putmecontainer.prefix = u'putme' 74 75 self.putmecontainer.application_category = u'bec' # doesn't matter 75 self.putmecontainer.year = 201176 self.putmecontainer.year = session 76 77 self.putmecontainer.application_fee = 300.0 77 self.putmecontainer.title = u'This is the putme 2011 container'78 self.app['applicants'][ 'putme2011'] = self.putmecontainer78 self.putmecontainer.title = u'This is the putme%s container' % session 79 self.app['applicants'][self.putmecontainer.code] = self.putmecontainer 79 80 delta = datetime.timedelta(days=10) 80 81 self.putmecontainer.startdate = datetime.datetime.now(pytz.utc) - delta … … 97 98 becapplicant.firstname = u'Anna' 98 99 becapplicant.lastname = u'Post' 99 self.app['applicants'][ 'bec2011'].addApplicant(becapplicant)100 self.app['applicants'][self.beccontainer.code].addApplicant(becapplicant) 100 101 self.becapplication_number = becapplicant.application_number 101 self.becapplicant = self.app['applicants'][ 'bec2011'][102 self.becapplicant = self.app['applicants'][self.beccontainer.code][ 102 103 self.becapplication_number] 103 self.becapplicant_path = ('http://localhost/app/applicants/bec 2011/%s'104 % self.becapplication_number)104 self.becapplicant_path = ('http://localhost/app/applicants/bec%s/%s' 105 % (session, self.becapplication_number)) 105 106 106 107 putmeapplicant = createObject(u'waeup.Applicant') 107 108 putmeapplicant.firstname = u'Anna' 108 109 putmeapplicant.lastname = u'Post' 109 self.app['applicants'][ 'putme2011'].addApplicant(putmeapplicant)110 self.app['applicants'][self.putmecontainer.code].addApplicant(putmeapplicant) 110 111 self.putmeapplication_number = putmeapplicant.application_number 111 self.putmeapplicant = self.app['applicants'][ 'putme2011'][112 self.putmeapplicant = self.app['applicants'][self.putmecontainer.code][ 112 113 self.putmeapplication_number] 113 self.putmeapplicant_path = ('http://localhost/app/applicants/putme 2011/%s'114 % self.putmeapplication_number)114 self.putmeapplicant_path = ('http://localhost/app/applicants/putme%s/%s' 115 % (session, self.putmeapplication_number)) 115 116 116 117 self.browser = Browser()
Note: See TracChangeset for help on using the changeset viewer.