Ignore:
Timestamp:
30 Mar 2012, 10:23:32 (13 years ago)
Author:
Henrik Bettermann
Message:

Remove all ApplicantsContainerProvider? components. Experience has shown that we only need one type of ApplicantsContainers? and one type of Applicants but with different interfaces for form generation.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py

    r7933 r8008  
    151151        self.assertEqual(container.entry_level, 100)
    152152        self.assertEqual(container.year, 2012)
    153         self.assertEqual(
    154             container.provider[0],
    155             u'waeup.kofa.applicants.ApplicantsContainer')
    156153        self.assertEqual(container.application_category, 'basic')
    157154        self.assertEqual(
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r7997 r8008  
    248248        self.browser.getControl(name="form.year").value = ['2010']
    249249        self.browser.getControl(name="form.entry_level").value = ['100']
    250         self.browser.getControl(name="form.provider").value = [
    251             'waeup.kofa.applicants.ApplicantsContainer']
    252250        self.browser.getControl(
    253251            name="form.application_category").value = ['basic']
     
    264262        self.browser.getControl(name="form.year").value = ['2010']
    265263        self.browser.getControl(name="form.entry_level").value = ['100']
    266         self.browser.getControl(name="form.provider").value = [
    267             'waeup.kofa.applicants.ApplicantsContainer']
    268264        self.browser.getControl(
    269265            name="form.application_category").value = ['basic']
     
    280276        self.browser.getControl(name="form.year").value = ['2010']
    281277        self.browser.getControl(name="form.entry_level").value = ['100']
    282         self.browser.getControl(name="form.provider").value = [
    283             'waeup.kofa.applicants.ApplicantsContainer']
    284278        #self.browser.getControl(name="form.ac_prefix").value = ['APP']
    285279        self.browser.getControl(
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py

    r7984 r8008  
    1212    ApplicantsContainerExporter, ApplicantsExporter)
    1313from waeup.kofa.applicants.interfaces import (
    14     IApplicantsContainerProvider, AppCatSource, ApplicationTypeSource)
     14    AppCatSource, ApplicationTypeSource)
    1515from waeup.kofa.applicants.tests.test_batching import (
    1616    ApplicantImportExportSetup)
     
    5353        container.year = 2012
    5454        container.entry_level = 100
    55         provider = [
    56             x for x in getUtilitiesFor(IApplicantsContainerProvider)
    57             if x[0] == 'waeup.kofa.applicants.ApplicantsContainer'][0]
    58         container.provider = provider
    5955        container.application_category = list(AppCatSource()(container))[0]
    6056        container.description = u'Some Description\nwith linebreak\n'
     
    7369        self.assertEqual(
    7470            result,
    75             'code,title,prefix,entry_level,year,provider,application_category,'
     71            'code,title,prefix,entry_level,year,application_category,'
    7672            'description,startdate,enddate,strict_deadline\r\n'
    7773
    78             'dp2012,General Studies 2012/13,app,100,2012,'
    79             'waeup.kofa.applicants.ApplicantsContainer,basic,'
     74            'dp2012,General Studies 2012/13,app,100,2012,basic,'
    8075            '"Some Description\nwith linebreak\n<<de>>man spriht deutsh",'
    8176            '2012-01-01,2012-01-31,1\r\n'
Note: See TracChangeset for help on using the changeset viewer.