Skip to content

Commit

Permalink
chore: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonHBodine committed Sep 6, 2023
1 parent 25eee35 commit 642c678
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions edxval/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,3 +1101,26 @@ def test_update_hls_encodes_for_video(self):
self.assertEqual(actual_encoded_video.url, expected_data['encode_data']['url'])
self.assertEqual(actual_encoded_video.file_size, expected_data['encode_data']['file_size'])
self.assertEqual(actual_encoded_video.bitrate, expected_data['encode_data']['bitrate'])

@ddt
class CourseTranscriptsDetailViewTest(APIAuthTestCase):
"""
CourseTranscriptsDetailView Tests.
"""
def setUp(self):
"""
Tests setup.
"""
self.url = reverse('course-transcripts')
self.video = Video.objects.create(**constants.VIDEO_DICT_FISH)
self.transcript_data = constants.VIDEO_TRANSCRIPT_CIELO24
super().setUp()

def test_error_responses(self):
"""
Tests error responses occurred during POSTing.
"""
response = self.client.get(self.url)

self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.message, 'course_id param required')

0 comments on commit 642c678

Please sign in to comment.