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/applicants/tests/test_export.py

    r11869 r12079  
    1111from waeup.kofa.applicants import ApplicantsContainer
    1212from waeup.kofa.applicants.export import (
    13     ApplicantsContainerExporter, ApplicantsExporter)
     13    ApplicantsContainerExporter, ApplicantExporter)
    1414from waeup.kofa.applicants.interfaces import (
    1515    AppCatSource, ApplicationTypeSource)
     
    8181        return
    8282
    83 class ApplicantsExporterTest(ApplicantImportExportSetup):
     83class ApplicantExporterTest(ApplicantImportExportSetup):
    8484
    8585    layer = FunctionalLayer
    8686
    8787    def setUp(self):
    88         super(ApplicantsExporterTest, self).setUp()
     88        super(ApplicantExporterTest, self).setUp()
    8989        self.outfile = os.path.join(self.workdir, 'myoutput.csv')
    9090        self.cat = getUtility(ICatalog, name='applicants_catalog')
     
    9494    def test_ifaces(self):
    9595        # make sure we fullfill interface contracts
    96         obj = ApplicantsExporter()
     96        obj = ApplicantExporter()
    9797        verifyObject(ICSVExporter, obj)
    98         verifyClass(ICSVExporter, ApplicantsExporter)
     98        verifyClass(ICSVExporter, ApplicantExporter)
    9999        return
    100100
     
    132132        # we can export nearly empty applicants
    133133        self.applicant.applicant_id = u'dp2011_654321'
    134         exporter = ApplicantsExporter()
     134        exporter = ApplicantExporter()
    135135        exporter.export([self.applicant], self.outfile)
    136136        result = open(self.outfile, 'rb').read()
     
    156156        # set values we can expect in export file
    157157        applicant = self.setup_applicant(self.applicant)
    158         exporter = ApplicantsExporter()
     158        exporter = ApplicantExporter()
    159159        exporter.export([applicant], self.outfile)
    160160        result = open(self.outfile, 'rb').read()
     
    183183        # set values we can expect in export file
    184184        self.applicant = self.setup_applicant(self.applicant)
    185         exporter = ApplicantsExporter()
     185        exporter = ApplicantExporter()
    186186        exporter.export_all(self.app, self.outfile)
    187187        result = open(self.outfile, 'rb').read()
     
    204204    def test_export_filtered(self):
    205205        self.applicant = self.setup_applicant(self.applicant)
    206         exporter = ApplicantsExporter()
     206        exporter = ApplicantExporter()
    207207        exporter.export_filtered(
    208208            self.app, self.outfile, container=self.container.code)
Note: See TracChangeset for help on using the changeset viewer.