Changeset 15918 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 13 Jan 2020, 13:06:54 (5 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r15709 r15918 3760 3760 'zope.mgr - students.browser.DatacenterExportJobContainerJobConfig ' 3761 3761 '- exported: bursary (2004, 100, ug_ft, None, None, None, ' 3762 '13/12/2012, 14/12/2012, all, all, all, all ), job_id=%s'3762 '13/12/2012, 14/12/2012, all, all, all, all, all), job_id=%s' 3763 3763 % job_id in logcontent 3764 3764 ) … … 3843 3843 self.browser.headers['content-disposition']) 3844 3844 self.assertTrue( 3845 '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100, 2013,'3845 '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100,%s,' 3846 3846 'paid,2012-12-13 00:00:00#,12.12,r-code,,K1000000,234,123,Anna,,' 3847 'Tester,created,2004,2004,,fac1,dep1,CERT1' in self.browser.contents) 3847 'Tester,created,2004,2004,,fac1,dep1,CERT1' 3848 %(curr_year-6) in self.browser.contents) 3848 3849 self.assertEqual(len(self.app['datacenter'].running_exports), 1) 3849 3850 job_id = self.app['datacenter'].running_exports[0][0] … … 3859 3860 'zope.mgr - students.browser.FacultiesExportJobContainerJobConfig ' 3860 3861 '- exported: bursary (2004, 100, ug_ft, None, None, None, ' 3861 '13/12/2012, 14/12/2012, all, all, schoolfee, all ), job_id=%s'3862 '13/12/2012, 14/12/2012, all, all, schoolfee, all, all), job_id=%s' 3862 3863 % job_id in logcontent 3863 3864 ) … … 3889 3890 self.browser.headers['content-disposition']) 3890 3891 self.assertTrue( 3891 '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100, 2013,'3892 '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100,%s,' 3892 3893 'paid,2012-12-13 00:00:00#,12.12,r-code,,K1000000,234,123,Anna,,' 3893 'Tester,created,2004,2004,,fac1,dep1,CERT1' in self.browser.contents) 3894 'Tester,created,2004,2004,,fac1,dep1,CERT1' 3895 %(curr_year-6) in self.browser.contents) 3894 3896 3895 3897 def test_faculty_export(self): … … 3941 3943 'zope.mgr - students.browser.FacultyExportJobContainerJobConfig ' 3942 3944 '- exported: students (2004, 100, ug_ft, fac1, None, None, ' 3943 '13/12/2012, 14/12/2012, all, all, all, all ), job_id=%s'3945 '13/12/2012, 14/12/2012, all, all, all, all, all), job_id=%s' 3944 3946 % job_id in logcontent 3945 3947 ) … … 4000 4002 'zope.mgr - students.browser.DepartmentExportJobContainerJobConfig ' 4001 4003 '- exported: students (2004, 100, ug_ft, None, dep1, None, ' 4002 '13/12/2012, 14/12/2012, all, all, all, all ), job_id=%s'4004 '13/12/2012, 14/12/2012, all, all, all, all, all), job_id=%s' 4003 4005 % job_id in logcontent 4004 4006 ) … … 4047 4049 'zope.mgr - students.browser.CertificateExportJobContainerJobConfig ' 4048 4050 '- exported: students ' 4049 '(2004, 100, None, None, None, CERT1, , , None, None, None, None), ' 4051 '(2004, 100, None, None, None, CERT1, , , None, None, ' 4052 'None, None, None), ' 4050 4053 'job_id=%s' 4051 4054 % job_id in logcontent … … 4246 4249 self.browser.headers['content-disposition']) 4247 4250 self.assertTrue( 4248 '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100, 2013,'4251 '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100,%s,' 4249 4252 'paid,2012-12-13 00:00:00#,12.12,r-code,,K1000000,234,123,Anna,,' 4250 'Tester,created,2004,2004,,fac1,dep1,CERT1' in self.browser.contents) 4253 'Tester,created,2004,2004,,fac1,dep1,CERT1' 4254 %(curr_year-6) in self.browser.contents) 4251 4255 # ... and discarded 4252 4256 self.browser.open('http://localhost/app/faculties/exports') … … 4272 4276 self.browser.headers['content-disposition']) 4273 4277 self.assertTrue( 4274 '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100, 2013,'4278 '666,12.12,2012-12-13 00:00:00#,schoolfee,[],1,my-id,p-item,100,%s,' 4275 4279 'paid,2012-12-13 00:00:00#,12.12,r-code,,K1000000,234,123,Anna,,' 4276 'Tester,created,2004,2004,,fac1,dep1,CERT1' in self.browser.contents) 4280 'Tester,created,2004,2004,,fac1,dep1,CERT1' 4281 %(curr_year-6) in self.browser.contents) 4277 4282 4278 4283 def test_export_accommodation_officers(self): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r15873 r15918 1365 1365 super(SessionPaymentsOverviewExporterTest, self).setUp() 1366 1366 self.setup_for_export() 1367 paycats = ('schoolfee', 'clearance', 'gown', 'transcript') 1368 paycatyears = '' 1367 1369 grok.getSite()['configuration'].current_academic_session = curr_year - 4 1370 year_range = range(curr_year-6, curr_year-3) 1371 year_range_tuple = tuple([str(year)[2:] for year in year_range]) 1372 for cat in paycats: 1373 for year in year_range_tuple: 1374 paycatyears += '%s,'%(cat+str(year)) 1375 self.paycatyears = paycatyears.strip(',') 1368 1376 return 1369 1377 … … 1389 1397 'student_id,matric_number,display_fullname,state,certcode,' 1390 1398 'faccode,depcode,is_postgrad,current_level,current_session,' 1391 'current_mode,entry_session,reg_number,schoolfee13,' 1392 'schoolfee14,schoolfee15,clearance13,clearance14,clearance15,' 1393 'gown13,gown14,gown15,transcript13,transcript14,transcript15\r\n' 1399 'current_mode,entry_session,reg_number,%s\r\n' 1394 1400 'A111111,234,Anna M. Tester,created,CERT1,NA,NA,0,200,' 1395 1401 '2012,ug_ft,2010,123,' 1396 '12.12,,,,,,,,,,,\r\n' in result1402 '12.12,,,,,,,,,,,\r\n' %self.paycatyears in result 1397 1403 ) 1398 1404 return … … 1431 1437 'student_id,matric_number,display_fullname,state,certcode,faccode,' 1432 1438 'depcode,is_postgrad,current_level,current_session,' 1433 'current_mode,entry_session,reg_number,' 1434 'schoolfee13,schoolfee14,schoolfee15,' 1435 'clearance13,clearance14,clearance15,' 1436 'gown13,gown14,gown15,' 1437 'transcript13,transcript14,transcript15\r\n' 1439 'current_mode,entry_session,reg_number,%s\r\n' 1438 1440 'A111111,234,Anna M. Tester,created,CERT1,NA,NA,0,200,2012,ug_ft,' 1439 1441 '2010,123,' 1440 1442 '12.12,14.14,1.01,,,,,,,,,\r\n' 1441 in result1443 %self.paycatyears in result 1442 1444 ) 1443 1445 return
Note: See TracChangeset for help on using the changeset viewer.