Ignore:
Timestamp:
6 Mar 2019, 21:21:38 (6 years ago)
Author:
Henrik Bettermann
Message:

Customize increaseMatricInteger.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/tests/test_utils.py

    r15284 r15344  
    3636        site['configuration'].next_matric_integer_2 = 1
    3737        site['configuration'].next_matric_integer_3 = 1
    38         site['configuration'].next_matric_integer_4 = 1
    3938        self.student.matric_number = None
    4039        # nd_ft
     
    4241        msg, mnumber = utils.setMatricNumber(self.student)
    4342        self.assertEqual(self.student.matric_number, 'fac1/ND/04/00001')
     43        self.assertEqual(site['configuration'].next_matric_integer, 2)
    4444        self.assertEqual(msg, None)
    4545        # hnd_ft
     
    4848        msg, mnumber = utils.setMatricNumber(self.student)
    4949        self.assertEqual(self.student.matric_number, 'fac1/HD/04/00001')
     50        self.assertEqual(site['configuration'].next_matric_integer_2, 2)
    5051        self.assertEqual(msg, None)
    5152        # nd_pt
     
    5455        msg, mnumber = utils.setMatricNumber(self.student)
    5556        self.assertEqual(self.student.matric_number, 'fac1/PT/04/00001')
     57        self.assertEqual(site['configuration'].next_matric_integer_3, 2)
    5658        self.assertEqual(msg, None)
    5759        return
Note: See TracChangeset for help on using the changeset viewer.