Changeset 6282 for main/waeup.sirp/trunk


Ignore:
Timestamp:
4 Jun 2011, 14:01:57 (13 years ago)
Author:
uli
Message:

Fix batching of applicants containers.

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  
    4242
    4343    location_fields = ['code',]
    44     factory_name = 'waeup.ApplicantContainer'
     44    factory_name = 'waeup.ApplicantsContainer'
    4545
    4646    def parentsExist(self, row, site):
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_batching.py

    r6252 r6282  
    119119    def test_import(self):
    120120        # Do a real import
     121        # see local sample_container.csv file for input
    121122        self.importer.doImport(
    122123            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)
    132127
    133128def test_suite():
Note: See TracChangeset for help on using the changeset viewer.