Changeset 12875
- Timestamp:
- 23 Apr 2015, 19:39:04 (10 years ago)
- 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 31 31 StudentStudyLevelExporter, 32 32 CourseTicketExporter, 33 StudentPayment sExporter)33 StudentPaymentExporter) 34 34 from waeup.kofa.utils.helpers import iface_names 35 35 from kofacustom.nigeria.interfaces import MessageFactory as _ … … 65 65 #: Fieldnames considered by this exporter 66 66 fields = tuple(sorted(iface_names( 67 INigeriaStudentStudyLevel) + ['level'])) + (67 INigeriaStudentStudyLevel))) + ( 68 68 'student_id', 'number_of_tickets','certcode') 69 69 … … 77 77 'certcode', 'display_fullname') 78 78 79 class NigeriaStudentPayment sExporter(StudentPaymentsExporter):79 class NigeriaStudentPaymentExporter(StudentPaymentExporter): 80 80 """Exporter for OnlinePayment instances. 81 81 """ -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py
r12392 r12875 25 25 from kofacustom.nigeria.utils.utils import NigeriaKofaUtils 26 26 from kofacustom.nigeria.students.export import ( 27 NigeriaStudentExporter, NigeriaStudentPayment sExporter,27 NigeriaStudentExporter, NigeriaStudentPaymentExporter, 28 28 ClearanceRequestedStudentExporter) 29 29 from kofacustom.nigeria.testing import FunctionalLayer … … 92 92 return 93 93 94 class NigeriaStudentPayment sExporterTest(StudentImportExportSetup):94 class NigeriaStudentPaymentExporterTest(StudentImportExportSetup): 95 95 96 96 layer = FunctionalLayer 97 97 98 98 def setUp(self): 99 super(NigeriaStudentPayment sExporterTest, self).setUp()99 super(NigeriaStudentPaymentExporterTest, self).setUp() 100 100 self.setup_for_export() 101 101 return … … 103 103 def test_ifaces(self): 104 104 # make sure we fullfill interface contracts 105 obj = NigeriaStudentPayment sExporter()105 obj = NigeriaStudentPaymentExporter() 106 106 verifyObject(ICSVExporter, obj) 107 verifyClass(ICSVExporter, NigeriaStudentPayment sExporter)107 verifyClass(ICSVExporter, NigeriaStudentPaymentExporter) 108 108 return 109 109 … … 114 114 self.student['payments']['my-payment'].r_company = 'interswatch' 115 115 self.student['payments']['my-payment'].r_card_num = '789' 116 exporter = NigeriaStudentPayment sExporter()116 exporter = NigeriaStudentPaymentExporter() 117 117 exporter.export_all(self.app, self.outfile) 118 118 result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.