Skip to content

Commit

Permalink
test: added some testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Feb 17, 2025
1 parent 5bc096f commit 4e74dc6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion edxval/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
init
"""

__version__ = '2.9.0'
__version__ = '2.9.1'
9 changes: 9 additions & 0 deletions edxval/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3188,7 +3188,16 @@ def test_get_transcript_details_for_course_no_course_videos(self):
course_transcript = api.get_transcript_details_for_course('this-is-not-a-course-id')

self.assertEqual(len(course_transcript), 0)

def test_get_transcript_languages_for_course(self):
"""
Verify that `get_transcript_languages_for_course` api function works as expected.
"""
transcript_languages = api.get_transcript_languages(self.course_id1, TranscriptProviderType.THREE_PLAY_MEDIA)
self.assertEqual(transcript_languages, ['en'])

transcript_languages = api.get_transcript_languages(self.course_id1, TranscriptProviderType.CIELO24)
self.assertEqual(transcript_languages, ['fr'])

@ddt
class TranscriptPreferencesTest(TestCase):
Expand Down

0 comments on commit 4e74dc6

Please sign in to comment.