Ignore:
Timestamp:
12 Jun 2018, 06:19:37 (6 years ago)
Author:
Henrik Bettermann
Message:

Rename StudentPaymentsOverviewExporter.

File:
1 edited

Legend:

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

    r14984 r15047  
    3030    StudentExporter, StudentStudyCourseExporter, StudentStudyLevelExporter,
    3131    CourseTicketExporter, StudentPaymentExporter, BedTicketExporter,
    32     StudentPaymentsOverviewExporter, StudentStudyLevelsOverviewExporter,
     32    SchoolFeePaymentsOverviewExporter, StudentStudyLevelsOverviewExporter,
    3333    ComboCardDataExporter, DataForBursaryExporter,
    3434    StudentUnpaidPaymentExporter,
     
    11521152
    11531153
    1154 class StudentPaymentsOverviewExporterTest(StudentImportExportSetup):
     1154class SchoolFeePaymentsOverviewExporterTest(StudentImportExportSetup):
    11551155
    11561156    layer = FunctionalLayer
    11571157
    11581158    def setUp(self):
    1159         super(StudentPaymentsOverviewExporterTest, self).setUp()
     1159        super(SchoolFeePaymentsOverviewExporterTest, self).setUp()
    11601160        self.setup_for_export()
    11611161        return
     
    11631163    def test_ifaces(self):
    11641164        # make sure we fullfill interface contracts
    1165         obj = StudentPaymentsOverviewExporter()
     1165        obj = SchoolFeePaymentsOverviewExporter()
    11661166        verifyObject(ICSVStudentExporter, obj)
    1167         verifyClass(ICSVStudentExporter, StudentPaymentsOverviewExporter)
     1167        verifyClass(ICSVStudentExporter, SchoolFeePaymentsOverviewExporter)
    11681168        return
    11691169
    11701170    def test_get_as_utility(self):
    11711171        # we can get a payments exporter as utility
    1172         result = queryUtility(ICSVExporter, name="paymentsoverview")
     1172        result = queryUtility(ICSVExporter, name="sfpaymentsoverview")
    11731173        self.assertTrue(result is not None)
    11741174        return
     
    11761176    def test_export(self):
    11771177        self.setup_student(self.student)
    1178         exporter = StudentPaymentsOverviewExporter()
     1178        exporter = SchoolFeePaymentsOverviewExporter()
    11791179        exporter.export([self.student], self.outfile)
    11801180        result = open(self.outfile, 'rb').read()
     
    12191219        payment_4.p_category = u'schoolfee'
    12201220        self.student['payments']['my-4thpayment'] = payment_4
    1221         exporter = StudentPaymentsOverviewExporter()
     1221        exporter = SchoolFeePaymentsOverviewExporter()
    12221222        exporter.export_all(self.app, self.outfile)
    12231223        result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.