Changeset 12234 for main/kofacustom.pcn/trunk/src/kofacustom/pcn/applicants
- Timestamp:
- 14 Dec 2014, 21:48:41 (10 years ago)
- Location:
- main/kofacustom.pcn/trunk/src/kofacustom/pcn/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.pcn/trunk/src/kofacustom/pcn/applicants/export.py
r11832 r12234 20 20 import grok 21 21 from waeup.kofa.applicants.interfaces import IApplicantBaseData 22 from waeup.kofa.applicants.export import Applicant sExporter22 from waeup.kofa.applicants.export import ApplicantExporter 23 23 from kofacustom.pcn.applicants.interfaces import ICustomApplicant 24 24 25 class CustomApplicant sExporter(ApplicantsExporter):25 class CustomApplicantExporter(ApplicantExporter): 26 26 """Exporter for Custom Applicants. 27 27 """ -
main/kofacustom.pcn/trunk/src/kofacustom/pcn/applicants/interfaces.py
r11843 r12234 51 51 state, depending on use-case. 52 52 """ 53 54 def writeLogMessage(view, comment):55 """Adds an INFO message to the log file56 """57 58 def createStudent():59 """Create a student object from applicatnt data60 and copy applicant object.61 """62 53 63 54 history = Attribute('Object history, a list of messages') -
main/kofacustom.pcn/trunk/src/kofacustom/pcn/applicants/tests/test_browser.py
r11832 r12234 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.pcn.applicants.export import CustomApplicant sExporter31 from kofacustom.pcn.applicants.export import CustomApplicantExporter 32 32 from kofacustom.pcn.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') … … 76 76 # set values we can expect in export file 77 77 self.applicant = self.setup_applicant(self.applicant) 78 exporter = CustomApplicant sExporter()78 exporter = CustomApplicantExporter() 79 79 exporter.export_all(self.app, self.outfile) 80 80 result = open(self.outfile, 'rb').read() … … 110 110 num_succ, num_fail, finished_path, failed_path = result 111 111 #content = open(failed_path).read() 112 112 113 self.assertEqual(num_succ,1) 113 114 self.assertEqual(num_fail,0)
Note: See TracChangeset for help on using the changeset viewer.