Changeset 12880


Ignore:
Timestamp:
23 Apr 2015, 21:13:54 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

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

    r12086 r12880  
    2929    NigeriaStudentStudyLevelExporter,
    3030    NigeriaCourseTicketExporter,
    31     NigeriaStudentPaymentsExporter)
     31    NigeriaStudentPaymentExporter)
    3232from waeup.kofa.utils.helpers import iface_names
    3333
     
    5353    #: Fieldnames considered by this exporter
    5454    fields = tuple(sorted(iface_names(
    55         ICustomStudentStudyLevel) + ['level'])) + (
     55        ICustomStudentStudyLevel))) + (
    5656        'student_id', 'number_of_tickets','certcode')
    5757
     
    6464        'certcode', 'display_fullname')
    6565
    66 class CustomStudentPaymentsExporter(NigeriaStudentPaymentsExporter):
     66class CustomStudentPaymentExporter(NigeriaStudentPaymentExporter):
    6767    """Exporter for OnlinePayment instances.
    6868    """
  • main/kofacustom.wdu/trunk/src/kofacustom/wdu/students/tests/test_export.py

    r12431 r12880  
    77from kofacustom.wdu.utils.utils import CustomKofaUtils
    88from kofacustom.wdu.students.export import (
    9     CustomStudentExporter, CustomStudentPaymentsExporter)
     9    CustomStudentExporter, CustomStudentPaymentExporter)
    1010from kofacustom.wdu.testing import FunctionalLayer
    1111
     
    7373        return
    7474
    75 class CustomStudentPaymentsExporterTest(StudentImportExportSetup):
     75class CustomStudentPaymentExporterTest(StudentImportExportSetup):
    7676
    7777    layer = FunctionalLayer
    7878
    7979    def setUp(self):
    80         super(CustomStudentPaymentsExporterTest, self).setUp()
     80        super(CustomStudentPaymentExporterTest, self).setUp()
    8181        self.setup_for_export()
    8282        return
     
    8484    def test_ifaces(self):
    8585        # make sure we fullfill interface contracts
    86         obj = CustomStudentPaymentsExporter()
     86        obj = CustomStudentPaymentExporter()
    8787        verifyObject(ICSVExporter, obj)
    88         verifyClass(ICSVExporter, CustomStudentPaymentsExporter)
     88        verifyClass(ICSVExporter, CustomStudentPaymentExporter)
    8989        return
    9090
     
    9595        self.student['payments']['my-payment'].r_company = 'interswatch'
    9696        self.student['payments']['my-payment'].r_card_num = '789'
    97         exporter = CustomStudentPaymentsExporter()
     97        exporter = CustomStudentPaymentExporter()
    9898        exporter.export_all(self.app, self.outfile)
    9999        result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.