From a0076c124380b44b72c87c83a912b49efe76302a Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Mon, 28 Aug 2023 13:32:39 +0500 Subject: [PATCH] fix: fix django 41 deprecation warnings (#33099) --- lms/djangoapps/discussion/django_comment_client/base/tests.py | 1 - .../management/commands/tests/test_manual_verify_student.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lms/djangoapps/discussion/django_comment_client/base/tests.py b/lms/djangoapps/discussion/django_comment_client/base/tests.py index 3861a6842874..d450998a60c6 100644 --- a/lms/djangoapps/discussion/django_comment_client/base/tests.py +++ b/lms/djangoapps/discussion/django_comment_client/base/tests.py @@ -1451,7 +1451,6 @@ def setUpClass(cls): @classmethod def setUpTestData(cls): super().setUpTestData() - cls.course = CourseFactory.create() cls.password = "test password" seed_permissions_roles(cls.course.id) diff --git a/lms/djangoapps/verify_student/management/commands/tests/test_manual_verify_student.py b/lms/djangoapps/verify_student/management/commands/tests/test_manual_verify_student.py index 9edcb6ab49dd..5ce26eeec2b8 100644 --- a/lms/djangoapps/verify_student/management/commands/tests/test_manual_verify_student.py +++ b/lms/djangoapps/verify_student/management/commands/tests/test_manual_verify_student.py @@ -77,7 +77,7 @@ def test_manual_verifications_created_date(self): created_at__gte=earliest_allowed_verification_date() ) - self.assertQuerysetEqual(verification1, [repr(r) for r in verification2]) + self.assertQuerysetEqual(verification1, [repr(r) for r in verification2], transform=repr) def test_user_doesnot_exist_log(self): """