Changeset 12875 for main


Ignore:
Timestamp:
23 Apr 2015, 19:39:04 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

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

Legend:

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

    r12392 r12875  
    3131    StudentStudyLevelExporter,
    3232    CourseTicketExporter,
    33     StudentPaymentsExporter)
     33    StudentPaymentExporter)
    3434from waeup.kofa.utils.helpers import iface_names
    3535from kofacustom.nigeria.interfaces import MessageFactory as _
     
    6565    #: Fieldnames considered by this exporter
    6666    fields = tuple(sorted(iface_names(
    67         INigeriaStudentStudyLevel) + ['level'])) + (
     67        INigeriaStudentStudyLevel))) + (
    6868        'student_id', 'number_of_tickets','certcode')
    6969
     
    7777        'certcode', 'display_fullname')
    7878
    79 class NigeriaStudentPaymentsExporter(StudentPaymentsExporter):
     79class NigeriaStudentPaymentExporter(StudentPaymentExporter):
    8080    """Exporter for OnlinePayment instances.
    8181    """
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r12392 r12875  
    2525from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
    2626from kofacustom.nigeria.students.export import (
    27     NigeriaStudentExporter, NigeriaStudentPaymentsExporter,
     27    NigeriaStudentExporter, NigeriaStudentPaymentExporter,
    2828    ClearanceRequestedStudentExporter)
    2929from kofacustom.nigeria.testing import FunctionalLayer
     
    9292        return
    9393
    94 class NigeriaStudentPaymentsExporterTest(StudentImportExportSetup):
     94class NigeriaStudentPaymentExporterTest(StudentImportExportSetup):
    9595
    9696    layer = FunctionalLayer
    9797
    9898    def setUp(self):
    99         super(NigeriaStudentPaymentsExporterTest, self).setUp()
     99        super(NigeriaStudentPaymentExporterTest, self).setUp()
    100100        self.setup_for_export()
    101101        return
     
    103103    def test_ifaces(self):
    104104        # make sure we fullfill interface contracts
    105         obj = NigeriaStudentPaymentsExporter()
     105        obj = NigeriaStudentPaymentExporter()
    106106        verifyObject(ICSVExporter, obj)
    107         verifyClass(ICSVExporter, NigeriaStudentPaymentsExporter)
     107        verifyClass(ICSVExporter, NigeriaStudentPaymentExporter)
    108108        return
    109109
     
    114114        self.student['payments']['my-payment'].r_company = 'interswatch'
    115115        self.student['payments']['my-payment'].r_card_num = '789'
    116         exporter = NigeriaStudentPaymentsExporter()
     116        exporter = NigeriaStudentPaymentExporter()
    117117        exporter.export_all(self.app, self.outfile)
    118118        result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.