From 6fd2782634ed8f61f84f9f3c4d5a08c6ca41af2b Mon Sep 17 00:00:00 2001 From: Kyrylo Kholodenko Date: Mon, 27 May 2024 17:30:09 +0300 Subject: [PATCH] test: fix tests for credentials api --- credentials/apps/credentials/tests/test_api.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/credentials/apps/credentials/tests/test_api.py b/credentials/apps/credentials/tests/test_api.py index f49e6aa7f..18dcc6e73 100644 --- a/credentials/apps/credentials/tests/test_api.py +++ b/credentials/apps/credentials/tests/test_api.py @@ -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): """ @@ -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): """ @@ -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): """