Ignore:
Timestamp:
19 Aug 2019, 19:32:09 (5 years ago)
Author:
Henrik Bettermann
Message:

Successful applicant payments do trigger 'approve' transition only
if applicant is in state 'started' and either p_category is 'application' or
applicant is special.

Add 'app_balance' payment category.

File:
1 edited

Legend:

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

    r15285 r15553  
    498498            DuplicationError, self.processor.addEntry, payment2,
    499499            dict(applicant_id=self.applicant2.applicant_id, p_id='p456'), self.app)
     500        # But we can add a ticket with another p_category.
     501        payment2.p_category = 'app_balance'
     502        self.processor.addEntry(
     503            payment2, dict(applicant_id=self.applicant2.applicant_id, p_id='p456'),
     504            self.app)
     505        self.assertEqual(len(self.applicant2.keys()),2)
     506        self.assertEqual(self.applicant2['p456'].p_id, 'p456')
    500507
    501508    def test_checkConversion(self):
Note: See TracChangeset for help on using the changeset viewer.