Changeset 6282 for main/waeup.sirp/trunk
- Timestamp:
- 4 Jun 2011, 14:01:57 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/batching.py
r6251 r6282 42 42 43 43 location_fields = ['code',] 44 factory_name = 'waeup.Applicant Container'44 factory_name = 'waeup.ApplicantsContainer' 45 45 46 46 def parentsExist(self, row, site): -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_batching.py
r6252 r6282 119 119 def test_import(self): 120 120 # Do a real import 121 # see local sample_container.csv file for input 121 122 self.importer.doImport( 122 123 self.csv_file, APPS_CONTAINER_HEADER_FIELDS) 123 #print self.workdir 124 #import pdb; pdb.set_trace() 125 126 # This currently gives: 127 # 128 # ac_prefix,code,application_category,provider,prefix,year,--ERRORS-- 129 # APP,CODE1,app,base,app,2013,"conversion error: field application_category: <type 'exceptions.LookupError'> LookupError('app',) / conversion error: field provider: <type 'exceptions.TypeError'> TypeError('unhashable type',)" 130 # DPP,CODE2,dp,base,app,2013,"conversion error: field application_category: <type 'exceptions.LookupError'> LookupError('dp',) / conversion error: field provider: <type 'exceptions.TypeError'> TypeError('unhashable type',)" 131 self.assertTrue(u'CODE1' in self.app['applicants'].keys()) 124 avail_containers = [x for x in self.app['applicants'].keys()] 125 self.assertTrue(u'CODE1' in avail_containers) 126 self.assertTrue(u'CODE2' in avail_containers) 132 127 133 128 def test_suite():
Note: See TracChangeset for help on using the changeset viewer.