Changeset 10456


Ignore:
Timestamp:
6 Aug 2013, 05:13:34 (11 years ago)
Author:
uli
Message:

In tests respect the new workflow states.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_reports.py

    r9679 r10456  
    1818    states = ('created', 'admitted', 'clearance started',
    1919              'clearance requested', 'cleared', 'school fee paid',
    20               'courses registered', 'courses validated', 'returning', 'Total')
     20              'courses registered', 'courses validated', 'returning',
     21              'graduated', 'transcript requested', 'Total')
    2122
    2223    def test_iface(self):
     
    3536            ((u'fac1', u'Total',),
    3637             self.states,
    37              ((1, 0, 0, 0, 0, 0, 0, 0, 0, 1),
    38               (1, 0, 0, 0, 0, 0, 0, 0, 0, 1),)))
     38             ((1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),
     39              (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),)))
    3940        self.assertEqual(
    4041            result2,
    4142            ((u'fac1', u'Total'),
    4243             self.states,
    43              ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    44               (0, 0, 0, 0, 0, 0, 0, 0, 0, 0),)))
     44             ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
     45              (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),)))
    4546        return
    4647
     
    5455            ((u'fac1', u'fac2', u'Total'),
    5556             self.states,
    56              ((1, 0, 0, 0, 0, 0, 0, 0, 0, 1),
    57               (0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    58               (1, 0, 0, 0, 0, 0, 0, 0, 0, 1),)))
     57             ((1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),
     58              (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
     59              (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),)))
    5960        self.assertEqual(
    6061            result2,
    6162            ((u'fac1', u'fac2', u'Total'),
    6263             self.states,
    63              ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    64               (0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    65               (0, 0, 0, 0, 0, 0, 0, 0, 0, 0),)))
     64             ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
     65              (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
     66              (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),)))
    6667        return
    6768
Note: See TracChangeset for help on using the changeset viewer.