Changeset 12084 for main/kofacustom.skeleton/trunk/src/kofacustom
- Timestamp:
- 28 Nov 2014, 09:54:10 (10 years ago)
- Location:
- main/kofacustom.skeleton/trunk/src/kofacustom/skeleton
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/applicants/export.py
r11543 r12084 20 20 import grok 21 21 from waeup.kofa.applicants.interfaces import IApplicantBaseData 22 from kofacustom.nigeria.applicants.export import NigeriaApplicant sExporter22 from kofacustom.nigeria.applicants.export import NigeriaApplicantExporter 23 23 from kofacustom.nigeria.applicants.interfaces import ( 24 24 INigeriaUGApplicant, INigeriaPGApplicant) … … 26 26 ICustomUGApplicant, ICustomPGApplicant) 27 27 28 class CustomApplicant sExporter(NigeriaApplicantsExporter):28 class CustomApplicantExporter(NigeriaApplicantExporter): 29 29 """Exporter for Custom Applicants. 30 30 """ -
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/applicants/tests/test_browser.py
r11941 r12084 29 29 from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup 30 30 from waeup.kofa.applicants.tests.test_batching import ApplicantImportExportSetup 31 from kofacustom.skeleton.applicants.export import CustomApplicant sExporter31 from kofacustom.skeleton.applicants.export import CustomApplicantExporter 32 32 from kofacustom.skeleton.applicants.batching import CustomApplicantProcessor 33 33 … … 37 37 layer = FunctionalLayer 38 38 39 class Applicant sExporterTest(ApplicantImportExportSetup):39 class ApplicantExporterTest(ApplicantImportExportSetup): 40 40 41 41 layer = FunctionalLayer 42 42 43 43 def setUp(self): 44 super(Applicant sExporterTest, self).setUp()44 super(ApplicantExporterTest, self).setUp() 45 45 self.outfile = os.path.join(self.workdir, 'myoutput.csv') 46 46 self.cat = getUtility(ICatalog, name='applicants_catalog') … … 74 74 # set values we can expect in export file 75 75 self.applicant = self.setup_applicant(self.applicant) 76 exporter = CustomApplicant sExporter()76 exporter = CustomApplicantExporter() 77 77 exporter.export_all(self.app, self.outfile) 78 78 result = open(self.outfile, 'rb').read() -
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/students/export.py
r11545 r12084 25 25 ICustomStudentOnlinePayment) 26 26 from kofacustom.nigeria.students.export import ( 27 NigeriaStudent sExporter,27 NigeriaStudentExporter, 28 28 NigeriaStudentStudyCourseExporter, 29 29 NigeriaStudentStudyLevelExporter, … … 32 32 from waeup.kofa.utils.helpers import iface_names 33 33 34 class CustomStudent sExporter(NigeriaStudentsExporter):34 class CustomStudentExporter(NigeriaStudentExporter): 35 35 """Exporter for Students. 36 36 """ -
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/students/tests/test_export.py
r11813 r12084 7 7 from kofacustom.skeleton.utils.utils import CustomKofaUtils 8 8 from kofacustom.skeleton.students.export import ( 9 CustomStudent sExporter, CustomStudentPaymentsExporter)9 CustomStudentExporter, CustomStudentPaymentsExporter) 10 10 from kofacustom.skeleton.testing import FunctionalLayer 11 11 12 12 13 class CustomStudent sExporterTest(StudentImportExportSetup):13 class CustomStudentExporterTest(StudentImportExportSetup): 14 14 15 15 layer = FunctionalLayer 16 16 17 17 def setUp(self): 18 super(CustomStudent sExporterTest, self).setUp()18 super(CustomStudentExporterTest, self).setUp() 19 19 self.setup_for_export() 20 20 result_entry = ResultEntry( … … 32 32 def test_ifaces(self): 33 33 # make sure we fullfill interface contracts 34 obj = CustomStudent sExporter()34 obj = CustomStudentExporter() 35 35 verifyObject(ICSVExporter, obj) 36 verifyClass(ICSVExporter, CustomStudent sExporter)36 verifyClass(ICSVExporter, CustomStudentExporter) 37 37 return 38 38 … … 42 42 # set values we can expect in export file 43 43 self.setup_student(self.student) 44 exporter = CustomStudent sExporter()44 exporter = CustomStudentExporter() 45 45 exporter.export_all(self.app, self.outfile) 46 46 result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.