Changeset 15047 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 12 Jun 2018, 06:19:37 (7 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
r15042 r15047 3935 3935 self.browser.getLink("Export student data").click() 3936 3936 self.browser.getControl("Configure new export").click() 3937 # Only the paymentsoverview exporter is available for department officers3937 # Only the sfpaymentsoverview exporter is available for department officers 3938 3938 self.assertFalse('<option value="students">' in self.browser.contents) 3939 3939 self.assertTrue( 3940 '<option value=" paymentsoverview">' in self.browser.contents)3941 self.browser.getControl(name="exporter").value = [' paymentsoverview']3940 '<option value="sfpaymentsoverview">' in self.browser.contents) 3941 self.browser.getControl(name="exporter").value = ['sfpaymentsoverview'] 3942 3942 self.browser.getControl(name="session").value = ['2004'] 3943 3943 self.browser.getControl(name="level").value = ['100'] -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r14984 r15047 30 30 StudentExporter, StudentStudyCourseExporter, StudentStudyLevelExporter, 31 31 CourseTicketExporter, StudentPaymentExporter, BedTicketExporter, 32 S tudentPaymentsOverviewExporter, StudentStudyLevelsOverviewExporter,32 SchoolFeePaymentsOverviewExporter, StudentStudyLevelsOverviewExporter, 33 33 ComboCardDataExporter, DataForBursaryExporter, 34 34 StudentUnpaidPaymentExporter, … … 1152 1152 1153 1153 1154 class S tudentPaymentsOverviewExporterTest(StudentImportExportSetup):1154 class SchoolFeePaymentsOverviewExporterTest(StudentImportExportSetup): 1155 1155 1156 1156 layer = FunctionalLayer 1157 1157 1158 1158 def setUp(self): 1159 super(S tudentPaymentsOverviewExporterTest, self).setUp()1159 super(SchoolFeePaymentsOverviewExporterTest, self).setUp() 1160 1160 self.setup_for_export() 1161 1161 return … … 1163 1163 def test_ifaces(self): 1164 1164 # make sure we fullfill interface contracts 1165 obj = S tudentPaymentsOverviewExporter()1165 obj = SchoolFeePaymentsOverviewExporter() 1166 1166 verifyObject(ICSVStudentExporter, obj) 1167 verifyClass(ICSVStudentExporter, S tudentPaymentsOverviewExporter)1167 verifyClass(ICSVStudentExporter, SchoolFeePaymentsOverviewExporter) 1168 1168 return 1169 1169 1170 1170 def test_get_as_utility(self): 1171 1171 # we can get a payments exporter as utility 1172 result = queryUtility(ICSVExporter, name=" paymentsoverview")1172 result = queryUtility(ICSVExporter, name="sfpaymentsoverview") 1173 1173 self.assertTrue(result is not None) 1174 1174 return … … 1176 1176 def test_export(self): 1177 1177 self.setup_student(self.student) 1178 exporter = S tudentPaymentsOverviewExporter()1178 exporter = SchoolFeePaymentsOverviewExporter() 1179 1179 exporter.export([self.student], self.outfile) 1180 1180 result = open(self.outfile, 'rb').read() … … 1219 1219 payment_4.p_category = u'schoolfee' 1220 1220 self.student['payments']['my-4thpayment'] = payment_4 1221 exporter = S tudentPaymentsOverviewExporter()1221 exporter = SchoolFeePaymentsOverviewExporter() 1222 1222 exporter.export_all(self.app, self.outfile) 1223 1223 result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.