Changeset 15921


Ignore:
Timestamp:
14 Jan 2020, 07:20:25 (5 years ago)
Author:
Henrik Bettermann
Message:

Rename some exporter classes.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r15920 r15921  
    746746            value, name, context=context)
    747747
    748 class StudentStudyLevelsOverviewExporter(StudentExporter):
     748class StudyLevelsOverviewExporter(StudentExporter):
    749749    """The Student Study Levels Overview Exporter first filters the set of
    750750    students by searching the students catalog. Then it exports some student
     
    824824            value, name, context=context)
    825825
    826 class StudentTranscriptDataExporter(StudentExporter):
    827     """The Student Transcript Data Exporter first filters the set of
     826class TranscriptDataExporter(StudentExporter):
     827    """The Transcript Data Exporter first filters the set of
    828828    students by searching the students catalog. Then it exports student data
    829829    along with their transcript data.
     
    852852                    )
    853853        return super(
    854             StudentTranscriptDataExporter, self).mangle_value(
    855             value, name, context=context)
     854            TranscriptDataExporter, self).mangle_value(
     855            value, name, context=context)
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r15920 r15921  
    3232    StudentExporter, StudentStudyCourseExporter, StudentStudyLevelExporter,
    3333    CourseTicketExporter, StudentPaymentExporter, BedTicketExporter,
    34     SchoolFeePaymentsOverviewExporter, StudentStudyLevelsOverviewExporter,
     34    SchoolFeePaymentsOverviewExporter, StudyLevelsOverviewExporter,
    3535    ComboCardDataExporter, DataForBursaryExporter,
    3636    StudentUnpaidPaymentExporter, SessionPaymentsOverviewExporter,
    3737    StudentOutstandingCoursesExporter,
    3838    AccommodationPaymentsExporter,
    39     StudentTranscriptDataExporter,
     39    TranscriptDataExporter,
    4040    get_students,)
    4141from waeup.kofa.students.accommodation import BedTicket
     
    14471447        return
    14481448
    1449 class StudentStudyLevelsOverviewExporterTest(StudentImportExportSetup):
     1449class StudyLevelsOverviewExporterTest(StudentImportExportSetup):
    14501450
    14511451    layer = FunctionalLayer
    14521452
    14531453    def setUp(self):
    1454         super(StudentStudyLevelsOverviewExporterTest, self).setUp()
     1454        super(StudyLevelsOverviewExporterTest, self).setUp()
    14551455        self.setup_for_export()
    14561456        return
    14571457
    14581458    def test_ifaces(self):
    1459         obj = StudentStudyLevelsOverviewExporter()
     1459        obj = StudyLevelsOverviewExporter()
    14601460        verifyObject(ICSVStudentExporter, obj)
    1461         verifyClass(ICSVStudentExporter, StudentStudyLevelsOverviewExporter)
     1461        verifyClass(ICSVStudentExporter, StudyLevelsOverviewExporter)
    14621462        return
    14631463
     
    14691469    def test_export(self):
    14701470        self.setup_student(self.student)
    1471         exporter = StudentStudyLevelsOverviewExporter()
     1471        exporter = StudyLevelsOverviewExporter()
    14721472        exporter.export([self.student], self.outfile)
    14731473        result = open(self.outfile, 'rb').read()
     
    14851485    def test_export_all(self):
    14861486        self.setup_student(self.student)
    1487         exporter = StudentStudyLevelsOverviewExporter()
     1487        exporter = StudyLevelsOverviewExporter()
    14881488        exporter.export_all(self.app, self.outfile)
    14891489        result = open(self.outfile, 'rb').read()
     
    15331533        return
    15341534
    1535 class StudentTranscriptDataExporterTest(StudentImportExportSetup):
     1535class TranscriptDataExporterTest(StudentImportExportSetup):
    15361536
    15371537    layer = FunctionalLayer
    15381538
    15391539    def setUp(self):
    1540         super(StudentTranscriptDataExporterTest, self).setUp()
     1540        super(TranscriptDataExporterTest, self).setUp()
    15411541        self.setup_for_export()
    15421542        return
     
    15441544    def test_export_all(self):
    15451545        self.setup_student(self.student)
    1546         exporter = StudentTranscriptDataExporter()
     1546        exporter = TranscriptDataExporter()
    15471547        exporter.export_all(self.app, self.outfile)
    15481548        result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.