Changeset 16872


Ignore:
Timestamp:
9 Mar 2022, 20:53:31 (3 years ago)
Author:
Henrik Bettermann
Message:

Adjust exporter and fix tests.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/export.py

    r16426 r16872  
    5656                except:
    5757                    pass
     58        if name == 'subj_comb' and value is not None:
     59            value = value.code
    5860        return super(
    5961            CustomApplicantExporter, self).mangle_value(
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py

    r16867 r16872  
    155155        )
    156156
    157     #subj_comb = schema.TextLine(
    158     #    title = _(u'Subject Combination'),
    159     #    required = False,
    160     #    readonly = False,
    161     #    )
    162 
    163157    subj_comb = schema.Choice(
    164158        title = _(u'Subject Combination'),
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/tests/test_browser.py

    r16863 r16872  
    9696        self.tpucontainer.code = u'tpu%s' % session
    9797        self.tpucontainer.prefix = u'tpu'
    98         self.tpucontainer.application_category = u'tpu'
     98        self.tpucontainer.application_category = u'basic'
    9999        self.tpucontainer.year = session
    100100        self.tpucontainer.application_fee = 300.0
     
    192192       
    193193    def test_final_submit_tpu(self):
    194         self.certificate.application_category = 'tpu'
     194        self.certificate.application_category = 'basic'
    195195        self.certificate.title = 'NCECert1'
    196196        notify(grok.ObjectModifiedEvent(self.certificate))
     
    236236        certificate.code = 'CERT2'
    237237        certificate.title = 'NCECert2'
    238         certificate.application_category = 'tpu'
     238        certificate.application_category = 'basic'
    239239        certificate.start_level = 100
    240240        certificate.end_level = 500
     
    265265        self.assertEqual(self.tpuapplicant.state, 'submitted')
    266266        return
    267 
Note: See TracChangeset for help on using the changeset viewer.