- Timestamp:
- 23 Apr 2015, 21:13:29 (10 years ago)
- Location:
- main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/students/export.py
r12084 r12878 29 29 NigeriaStudentStudyLevelExporter, 30 30 NigeriaCourseTicketExporter, 31 NigeriaStudentPayment sExporter)31 NigeriaStudentPaymentExporter) 32 32 from waeup.kofa.utils.helpers import iface_names 33 33 … … 53 53 #: Fieldnames considered by this exporter 54 54 fields = tuple(sorted(iface_names( 55 ICustomStudentStudyLevel) + ['level'])) + (55 ICustomStudentStudyLevel))) + ( 56 56 'student_id', 'number_of_tickets','certcode') 57 57 … … 64 64 'certcode', 'display_fullname') 65 65 66 class CustomStudentPayment sExporter(NigeriaStudentPaymentsExporter):66 class CustomStudentPaymentExporter(NigeriaStudentPaymentExporter): 67 67 """Exporter for OnlinePayment instances. 68 68 """ -
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/students/tests/test_export.py
r12430 r12878 7 7 from kofacustom.skeleton.utils.utils import CustomKofaUtils 8 8 from kofacustom.skeleton.students.export import ( 9 CustomStudentExporter, CustomStudentPayment sExporter)9 CustomStudentExporter, CustomStudentPaymentExporter) 10 10 from kofacustom.skeleton.testing import FunctionalLayer 11 11 … … 73 73 return 74 74 75 class CustomStudentPayment sExporterTest(StudentImportExportSetup):75 class CustomStudentPaymentExporterTest(StudentImportExportSetup): 76 76 77 77 layer = FunctionalLayer 78 78 79 79 def setUp(self): 80 super(CustomStudentPayment sExporterTest, self).setUp()80 super(CustomStudentPaymentExporterTest, self).setUp() 81 81 self.setup_for_export() 82 82 return … … 84 84 def test_ifaces(self): 85 85 # make sure we fullfill interface contracts 86 obj = CustomStudentPayment sExporter()86 obj = CustomStudentPaymentExporter() 87 87 verifyObject(ICSVExporter, obj) 88 verifyClass(ICSVExporter, CustomStudentPayment sExporter)88 verifyClass(ICSVExporter, CustomStudentPaymentExporter) 89 89 return 90 90 … … 95 95 self.student['payments']['my-payment'].r_company = 'interswatch' 96 96 self.student['payments']['my-payment'].r_card_num = '789' 97 exporter = CustomStudentPayment sExporter()97 exporter = CustomStudentPaymentExporter() 98 98 exporter.export_all(self.app, self.outfile) 99 99 result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.