aboutsummaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-26 14:08:11 +0100
committerAlban Gruin2017-11-26 14:08:11 +0100
commit2aacb6e59e40c9d47d02719dc7b5541a36b3c9ed (patch)
tree8f5cedbe9d1a9a60fdb3fd8cf2a0b8176517226e /tests.py
parentf8c7775aac4a7eb2a4430d1aabb20b7f29939af7 (diff)
Correction d’un cas pouvant provoquer une erreur de parsage de
groupe (si jamais il n’y a pas de semestre), renvoi du numéro de semestre dans group_info, adaptation de corresponds_to.
Diffstat (limited to 'tests.py')
-rw-r--r--tests.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests.py b/tests.py
index 77fa120..1425a84 100644
--- a/tests.py
+++ b/tests.py
@@ -152,12 +152,12 @@ class GroupTestCase(TestCase):
general = Group.objects.get(celcat_name="L1 info (toutes sections et semestres confondus)", timetable=self.timetable)
- self.assertEqual(cma.group_info, ("L1 info s2 ", "A"))
- self.assertEqual(tda2.group_info, ("L1 info s2 ", "A2"))
- self.assertEqual(tpa21.group_info, ("L1 info s2 ", "A21"))
+ self.assertEqual(cma.group_info, ("L1 info", 2, "A"))
+ self.assertEqual(tda2.group_info, ("L1 info", 2, "A2"))
+ self.assertEqual(tpa21.group_info, ("L1 info", 2, "A21"))
- self.assertEqual(cmb.group_info, ("L1 info s2 ", "B"))
- self.assertEqual(tdb2.group_info, ("L1 info s2 ", "B2"))
- self.assertEqual(tpb21.group_info, ("L1 info s2 ", "B21"))
+ self.assertEqual(cmb.group_info, ("L1 info", 2, "B"))
+ self.assertEqual(tdb2.group_info, ("L1 info", 2, "B2"))
+ self.assertEqual(tpb21.group_info, ("L1 info", 2, "B21"))
- self.assertEqual(general.group_info, ("L1 info ", ""))
+ self.assertEqual(general.group_info, ("L1 info", None, ""))