Ignore:
Timestamp:
28 Nov 2014, 08:50:17 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename some exporter classes: singular not plural.

File:
1 edited

Legend:

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

    r11756 r12079  
    1010from waeup.kofa.students.catalog import StudentsQuery
    1111from waeup.kofa.students.export import (
    12     StudentsExporter, StudentStudyCourseExporter, StudentStudyLevelExporter,
     12    StudentExporter, StudentStudyCourseExporter, StudentStudyLevelExporter,
    1313    CourseTicketExporter, StudentPaymentsExporter, BedTicketsExporter,
    1414    StudentPaymentsOverviewExporter, StudentStudyLevelsOverviewExporter,
     
    101101
    102102
    103 class StudentsExporterTest(StudentImportExportSetup):
     103class StudentExporterTest(StudentImportExportSetup):
    104104
    105105    layer = FunctionalLayer
     
    112112
    113113    def setUp(self):
    114         super(StudentsExporterTest, self).setUp()
     114        super(StudentExporterTest, self).setUp()
    115115        self.setup_for_export()
    116116        return
     
    118118    def test_ifaces(self):
    119119        # make sure we fullfill interface contracts
    120         obj = StudentsExporter()
     120        obj = StudentExporter()
    121121        verifyObject(ICSVStudentExporter, obj)
    122         verifyClass(ICSVStudentExporter, StudentsExporter)
     122        verifyClass(ICSVStudentExporter, StudentExporter)
    123123        return
    124124
     
    133133        # set values we can expect in export file
    134134        self.setup_student(self.student)
    135         exporter = StudentsExporter()
     135        exporter = StudentExporter()
    136136        exporter.export([self.student], self.outfile)
    137137        result = open(self.outfile, 'rb').read()
     
    155155        # set values we can expect in export file
    156156        self.setup_student(self.student)
    157         exporter = StudentsExporter()
     157        exporter = StudentExporter()
    158158        exporter.export_all(self.app, self.outfile)
    159159        result = open(self.outfile, 'rb').read()
     
    175175        # we can export a single student
    176176        self.setup_student(self.student)
    177         exporter = StudentsExporter()
     177        exporter = StudentExporter()
    178178        exporter.export_student(self.student, self.outfile)
    179179        result = open(self.outfile, 'rb').read()
     
    197197        self.app['students'].addStudent(self.student)
    198198        notify(grok.ObjectModifiedEvent(self.student))
    199         exporter = StudentsExporter()
     199        exporter = StudentExporter()
    200200
    201201        exporter.export_filtered(
     
    249249        self.app['students'].addStudent(self.student)
    250250        notify(grok.ObjectModifiedEvent(self.student))
    251         exporter = StudentsExporter()
     251        exporter = StudentExporter()
    252252        # current_session can be both a string ...
    253253        exporter.export_filtered(
     
    269269        self.app['students'].addStudent(self.student)
    270270        notify(grok.ObjectModifiedEvent(self.student))
    271         exporter = StudentsExporter()
     271        exporter = StudentExporter()
    272272
    273273        exporter.export_filtered(
Note: See TracChangeset for help on using the changeset viewer.