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

Customize increaseMatricInteger.

File:
1 edited

Legend:

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

    r15288 r15345  
    4242        msg, mnumber = utils.setMatricNumber(self.student)
    4343        self.assertEqual(self.student.matric_number, 'dep1/ND/04/00001')
     44        self.assertEqual(site['configuration'].next_matric_integer, 2)
    4445        self.assertEqual(msg, None)
    4546        # hnd_ft
     
    4849        msg, mnumber = utils.setMatricNumber(self.student)
    4950        self.assertEqual(self.student.matric_number, 'dep1/HND/04/00001')
     51        self.assertEqual(site['configuration'].next_matric_integer_2, 2)
    5052        self.assertEqual(msg, None)
    5153        # nd_pt
     
    5456        msg, mnumber = utils.setMatricNumber(self.student)
    5557        self.assertEqual(self.student.matric_number, 'dep1/ND/04/10001')
     58        self.assertEqual(site['configuration'].next_matric_integer_3, 10002)
    5659        self.assertEqual(msg, None)
    5760        # hnd_pt
     
    6063        msg, mnumber = utils.setMatricNumber(self.student)
    6164        self.assertEqual(self.student.matric_number, 'dep1/HND/04/10001')
     65        self.assertEqual(site['configuration'].next_matric_integer_4, 10002)
    6266        self.assertEqual(msg, None)
    6367        return
Note: See TracChangeset for help on using the changeset viewer.