Skip to content

Commit

Permalink
test: fix tests for credentials api
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylo-kh committed May 27, 2024
1 parent 58fa7b8 commit 6fd2782
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions credentials/apps/credentials/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ def test_award_course_credential(self):
assert credential.username == self.user.username
assert credential.credential_id == course_cert_config.id
assert credential.status == "awarded"
# 12 is the content type for "Course Certificate"
assert credential.credential_content_type_id == 12
# 22 is the content type for "Course Certificate"
assert credential.credential_content_type_id == 22

def test_revoke_course_credential(self):
"""
Expand All @@ -488,8 +488,8 @@ def test_revoke_course_credential(self):
assert credential.username == self.user.username
assert credential.credential_id == course_cert_config.id
assert credential.status == "revoked"
# 12 is the content type for "Course Certificate"
assert credential.credential_content_type_id == 12
# 22 is the content type for "Course Certificate"
assert credential.credential_content_type_id == 22

def test_update_existing_cert(self):
"""
Expand Down Expand Up @@ -555,8 +555,8 @@ def test_award_course_cert_no_course_certificate(self):
assert credential.username == self.user.username
assert credential.credential_id == course_cert_config.id
assert credential.status == "awarded"
# 12 is the content type for "Course Certificate"
assert credential.credential_content_type_id == 12
# 22 is the content type for "Course Certificate"
assert credential.credential_content_type_id == 22

def test_award_course_cert_no_course_certificate_exception_occurs(self):
"""
Expand Down

0 comments on commit 6fd2782

Please sign in to comment.