Changeset 15921 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 14 Jan 2020, 07:20:25 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r15920 r15921 32 32 StudentExporter, StudentStudyCourseExporter, StudentStudyLevelExporter, 33 33 CourseTicketExporter, StudentPaymentExporter, BedTicketExporter, 34 SchoolFeePaymentsOverviewExporter, Stud entStudyLevelsOverviewExporter,34 SchoolFeePaymentsOverviewExporter, StudyLevelsOverviewExporter, 35 35 ComboCardDataExporter, DataForBursaryExporter, 36 36 StudentUnpaidPaymentExporter, SessionPaymentsOverviewExporter, 37 37 StudentOutstandingCoursesExporter, 38 38 AccommodationPaymentsExporter, 39 StudentTranscriptDataExporter,39 TranscriptDataExporter, 40 40 get_students,) 41 41 from waeup.kofa.students.accommodation import BedTicket … … 1447 1447 return 1448 1448 1449 class Stud entStudyLevelsOverviewExporterTest(StudentImportExportSetup):1449 class StudyLevelsOverviewExporterTest(StudentImportExportSetup): 1450 1450 1451 1451 layer = FunctionalLayer 1452 1452 1453 1453 def setUp(self): 1454 super(Stud entStudyLevelsOverviewExporterTest, self).setUp()1454 super(StudyLevelsOverviewExporterTest, self).setUp() 1455 1455 self.setup_for_export() 1456 1456 return 1457 1457 1458 1458 def test_ifaces(self): 1459 obj = Stud entStudyLevelsOverviewExporter()1459 obj = StudyLevelsOverviewExporter() 1460 1460 verifyObject(ICSVStudentExporter, obj) 1461 verifyClass(ICSVStudentExporter, Stud entStudyLevelsOverviewExporter)1461 verifyClass(ICSVStudentExporter, StudyLevelsOverviewExporter) 1462 1462 return 1463 1463 … … 1469 1469 def test_export(self): 1470 1470 self.setup_student(self.student) 1471 exporter = Stud entStudyLevelsOverviewExporter()1471 exporter = StudyLevelsOverviewExporter() 1472 1472 exporter.export([self.student], self.outfile) 1473 1473 result = open(self.outfile, 'rb').read() … … 1485 1485 def test_export_all(self): 1486 1486 self.setup_student(self.student) 1487 exporter = Stud entStudyLevelsOverviewExporter()1487 exporter = StudyLevelsOverviewExporter() 1488 1488 exporter.export_all(self.app, self.outfile) 1489 1489 result = open(self.outfile, 'rb').read() … … 1533 1533 return 1534 1534 1535 class StudentTranscriptDataExporterTest(StudentImportExportSetup):1535 class TranscriptDataExporterTest(StudentImportExportSetup): 1536 1536 1537 1537 layer = FunctionalLayer 1538 1538 1539 1539 def setUp(self): 1540 super( StudentTranscriptDataExporterTest, self).setUp()1540 super(TranscriptDataExporterTest, self).setUp() 1541 1541 self.setup_for_export() 1542 1542 return … … 1544 1544 def test_export_all(self): 1545 1545 self.setup_student(self.student) 1546 exporter = StudentTranscriptDataExporter()1546 exporter = TranscriptDataExporter() 1547 1547 exporter.export_all(self.app, self.outfile) 1548 1548 result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.