Update report_sem?_date after sending report to student

This commit is contained in:
Claude Paroz 2018-02-06 09:43:53 +01:00
parent 3758982989
commit b15a8418fc
2 changed files with 6 additions and 0 deletions

View file

@ -395,3 +395,6 @@ class ImportTests(TestCase):
# Second email as bcc
self.assertEqual(mail.outbox[0].recipients(), ['albin@example.org', 'me@example.org'])
self.assertIn("le bulletin scolaire de Monsieur Albin Dupond", mail.outbox[0].body)
student.refresh_from_db()
self.assertIsNotNone(student.report_sem1_sent)
self.assertIsNone(student.report_sem2_sent)