Skip to content

Commit

Permalink
chore: more test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonHBodine committed Sep 6, 2023
1 parent 2317119 commit 3a37b2c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions edxval/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,13 +1114,19 @@ def setUp(self):
"""

self.url_base = 'course-transcripts'
self.video = Video.objects.create(**constants.VIDEO_DICT_FISH)
self.transcript_data = constants.VIDEO_TRANSCRIPT_CIELO24
super().setUp()

def test_good_request_responses(self):
url = reverse(
self.url_base,
kwargs={"course_id": 'course-v1:edx+1+2023_05'}
)
response = self.client.get(url)
self.assertEqual(response.status_code, status.HTTP_200_OK)

def test_bad_request_responses(self):
"""
Tests error responses occurred during POSTing.
Tests error responses occurred during GET.
"""
url = reverse(
self.url_base,
Expand Down

0 comments on commit 3a37b2c

Please sign in to comment.