From 0deb4f22fa645f78714e2f4333af31e2ff43e0a3 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Wed, 11 Sep 2024 18:41:03 +0500 Subject: [PATCH] fix: fix failing unit tests --- tests/test_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_models.py b/tests/test_models.py index 2fcdfd0..3965858 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -758,8 +758,8 @@ def test_model_obj_creation_with_course_and_org(self): course_key=self.courses[0].key, organization=self.courses[0].key.split('+')[0] ) - - assert raised_exception.value.args[0] == 'CHECK constraint failed: either_course_or_org' + + assert raised_exception.value.message_dict['__all__'][0] == 'Add either course key or organization.' def test_model_obj_creation_with_wrong_course_key(self): """