Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
test(Models): 🧪 Test commendation location field
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Gray <[email protected]>
  • Loading branch information
mmoomocow committed Sep 21, 2023
1 parent 879a49b commit bbe2bc4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions commendations/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def test_Commendation(self):
commendation_type="E",
reason="Test",
teacher=self.teacher.teacher,
inside_outside=Commendation.OUTSIDE,
)
commendation.students.add(self.student.student)

Expand All @@ -179,6 +180,12 @@ def test_Commendation(self):
f"Commendation teacher was not set correctly, expected {self.teacher.teacher}, got {commendation.teacher}",
)

self.assertEqual(
commendation.inside_outside,
Commendation.OUTSIDE,
f"Commendation inside_outside was not set correctly, expected {Commendation.OUTSIDE}, got {commendation.inside_outside}",
)

self.assertEqual(
commendation.students.first(),
self.student.student,
Expand Down

0 comments on commit bbe2bc4

Please sign in to comment.