Ignore:
Timestamp:
28 Nov 2014, 09:55:52 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename some exporter classes: singular not plural.

Location:
main/kofacustom.wdu/trunk/src/kofacustom/wdu/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.wdu/trunk/src/kofacustom/wdu/students/export.py

    r11940 r12086  
    2525    ICustomStudentOnlinePayment)
    2626from kofacustom.nigeria.students.export import (
    27     NigeriaStudentsExporter,
     27    NigeriaStudentExporter,
    2828    NigeriaStudentStudyCourseExporter,
    2929    NigeriaStudentStudyLevelExporter,
     
    3232from waeup.kofa.utils.helpers import iface_names
    3333
    34 class CustomStudentsExporter(NigeriaStudentsExporter):
     34class CustomStudentExporter(NigeriaStudentExporter):
    3535    """Exporter for Students.
    3636    """
  • main/kofacustom.wdu/trunk/src/kofacustom/wdu/students/tests/test_export.py

    r11940 r12086  
    77from kofacustom.wdu.utils.utils import CustomKofaUtils
    88from kofacustom.wdu.students.export import (
    9     CustomStudentsExporter, CustomStudentPaymentsExporter)
     9    CustomStudentExporter, CustomStudentPaymentsExporter)
    1010from kofacustom.wdu.testing import FunctionalLayer
    1111
    1212
    13 class CustomStudentsExporterTest(StudentImportExportSetup):
     13class CustomStudentExporterTest(StudentImportExportSetup):
    1414
    1515    layer = FunctionalLayer
    1616
    1717    def setUp(self):
    18         super(CustomStudentsExporterTest, self).setUp()
     18        super(CustomStudentExporterTest, self).setUp()
    1919        self.setup_for_export()
    2020        result_entry = ResultEntry(
     
    3232    def test_ifaces(self):
    3333        # make sure we fullfill interface contracts
    34         obj = CustomStudentsExporter()
     34        obj = CustomStudentExporter()
    3535        verifyObject(ICSVExporter, obj)
    36         verifyClass(ICSVExporter, CustomStudentsExporter)
     36        verifyClass(ICSVExporter, CustomStudentExporter)
    3737        return
    3838
     
    4242        # set values we can expect in export file
    4343        self.setup_student(self.student)
    44         exporter = CustomStudentsExporter()
     44        exporter = CustomStudentExporter()
    4545        exporter.export_all(self.app, self.outfile)
    4646        result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.