From 971f2ac1c31bf9ee3a848463e1907bfbf6a9ab5b Mon Sep 17 00:00:00 2001 From: Jesper Hodge Date: Wed, 15 Jan 2025 15:37:11 -0500 Subject: [PATCH] fix: lint --- .../rest_api/v0/tests/test_course_optimizer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cms/djangoapps/contentstore/rest_api/v0/tests/test_course_optimizer.py b/cms/djangoapps/contentstore/rest_api/v0/tests/test_course_optimizer.py index 5143e9b60ac..8185c1a628e 100644 --- a/cms/djangoapps/contentstore/rest_api/v0/tests/test_course_optimizer.py +++ b/cms/djangoapps/contentstore/rest_api/v0/tests/test_course_optimizer.py @@ -1,8 +1,9 @@ -from cms.djangoapps.contentstore.tests.test_utils import AuthorizeStaffTestCase from django.test import TestCase from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase from django.urls import reverse +from cms.djangoapps.contentstore.tests.test_utils import AuthorizeStaffTestCase + class TestGetLinkCheckStatus(AuthorizeStaffTestCase, ModuleStoreTestCase, TestCase): ''' Authentication and Authorization Tests for CourseOptimizer. @@ -19,14 +20,14 @@ def get_url(self, course_key): kwargs={'course_id': self.course.id} ) return url - + def test_produces_4xx_when_invalid_course_id(self): ''' Test course_id validation ''' response = self.make_request(course_id='invalid_course_id') self.assertIn(response.status_code, range(400, 500)) - + def test_produces_4xx_when_additional_kwargs(self): ''' Test additional kwargs validation