Changeset 15128 for main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/reports
- Timestamp:
- 6 Sep 2018, 11:16:55 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/reports/tests/test_student_statistics.py
r14514 r15128 21 21 'clearance requested', 'cleared', 'school fee paid', 22 22 'courses registered', 'courses validated', 'returning', 23 'graduated', 'transcript requested', 'Total') 23 'graduated', 'transcript requested', 'transcript validated', 24 'transcript released', 'Total') 24 25 25 26 def test_iface(self): … … 41 42 ((u'fac1', u'Total',), 42 43 self.states, 43 ((1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),44 (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),)))44 ((1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1), 45 (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),))) 45 46 self.assertEqual( 46 47 result2, 47 48 ((u'fac1', u'Total'), 48 49 self.states, 49 ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),50 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),)))50 ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), 51 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),))) 51 52 return 52 53 … … 62 63 ((u'fac1', u'fac2', u'Total'), 63 64 self.states, 64 ((1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),65 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),66 (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),)))65 ((1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1), 66 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), 67 (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),))) 67 68 self.assertEqual( 68 69 result2, 69 70 ((u'fac1', u'fac2', u'Total'), 70 71 self.states, 71 ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),72 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),73 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),)))72 ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), 73 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), 74 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),))) 74 75 return 75 76 … … 83 84 ((u'fac1/dep1', u'fac2/dep2', u'Total'), 84 85 self.states, 85 ((1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),86 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),87 (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),)))88 self.assertEqual( 89 result2, 90 ((u'fac1/dep1', u'fac2/dep2', u'Total'), 91 self.states, 92 ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),93 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),94 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),)))86 ((1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1), 87 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), 88 (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),))) 89 self.assertEqual( 90 result2, 91 ((u'fac1/dep1', u'fac2/dep2', u'Total'), 92 self.states, 93 ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), 94 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), 95 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),))) 95 96 return 96 97 … … 104 105 ((u'fac1/dep1', u'fac2/dep2', u'Total'), 105 106 self.states, 106 ((1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),107 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),108 (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),)))109 self.assertEqual( 110 result2, 111 ((u'fac1/dep1', u'fac2/dep2', u'Total'), 112 self.states, 113 ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),114 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),115 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),)))107 ((1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1), 108 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), 109 (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),))) 110 self.assertEqual( 111 result2, 112 ((u'fac1/dep1', u'fac2/dep2', u'Total'), 113 self.states, 114 ((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), 115 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), 116 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),))) 116 117 return 117 118
Note: See TracChangeset for help on using the changeset viewer.