- Timestamp:
- 12 Jun 2018, 06:19:37 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.