Skip to content

Commit

Permalink
fix: fix failing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Sep 11, 2024
1 parent 6143d4f commit 0deb4f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 0deb4f2

Please sign in to comment.