Ignore:
Timestamp:
9 Oct 2019, 20:09:19 (5 years ago)
Author:
Henrik Bettermann
Message:

Update tests. Customize PORTRAIT_CHANGE_STATES.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch/tests.py

    r15563 r15656  
    5050    def setUp(self):
    5151        super(InterswitchTestsStudents, self).setUp()
     52        self.app['configuration']['2004'].interswitch_enabled = True
    5253
    5354    def test_interswitch_form(self):
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_export.py

    r15563 r15656  
    5959            'marit_stat,matric_number,middlename,nationality,'
    6060            'next_kin_address,next_kin_name,next_kin_phone,next_kin_relation,'
    61             'nysc_lga,nysc_location,nysc_year,officer_comment,'
     61            'nysc_lga,nysc_location,nysc_year,officer_comment,parents_email,'
    6262            'perm_address,personal_updated,phone,'
    6363            'physical_clearance_date,provisionally_cleared,reg_number,'
     
    6868            '"[(\'printing_craft_practice\', \'A1\')]",my clr code,1981-02-04#,,,'
    6969            'anna@sample.com,,,,,,,,,,,,,Anna,,,,,,"[(\'printing_craft_practice\', \'A1\')]"'
    70             ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,'
     70            ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,,'
    7171            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,,123,,,,,'
    7272            '"[(\'printing_craft_practice\', \'A1\')]",,f,A111111,0,,,created,'
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py

    r15654 r15656  
    1919from zope.component import createObject, getUtility
    2020from waeup.kofa.interfaces import (IKofaUtils,
    21     CLEARED, RETURNING, PAID, REGISTERED, VALIDATED)
     21    ADMITTED, CLEARED, RETURNING, PAID, REGISTERED, VALIDATED)
    2222from kofacustom.nigeria.students.utils import NigeriaStudentsUtils
    2323from kofacustom.iuokada.interfaces import MessageFactory as _
     
    3636    # Maximum size of upload files in kB
    3737    MAX_KB = 500
     38
     39    #: A tuple containing the names of registration states in which changing of
     40    #: passport pictures is allowed.
     41    PORTRAIT_CHANGE_STATES = (ADMITTED,)
    3842
    3943    def setPaymentDetails(self, category, student,
Note: See TracChangeset for help on using the changeset viewer.