Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperhodge committed Jan 16, 2025
1 parent 41ff45c commit 37d8be6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 37d8be6

Please sign in to comment.