Commit 65639237 by Qubad786

rename 3PLayMedia to 3PlayMedia

parent 7d9e88af
......@@ -10,7 +10,7 @@ from mock import patch
from django.test import TestCase
from control.veda_deliver_3play import (
ThreePLayMediaClient,
ThreePlayMediaClient,
ThreePlayMediaUrlError,
ThreePlayMediaPerformTranscriptionError,
)
......@@ -75,7 +75,7 @@ class ThreePlayMediaClientTests(TestCase):
"""
Verify 3PlayMedia happy transcription flow
"""
three_play_client = ThreePLayMediaClient(**self.video_transcript_preferences)
three_play_client = ThreePlayMediaClient(**self.video_transcript_preferences)
responses.add(
responses.HEAD,
......@@ -145,7 +145,7 @@ class ThreePlayMediaClientTests(TestCase):
Tests media url validations.
"""
responses.add(responses.HEAD, u'https://s3.amazonaws.com/bkt/video.mp4', **response)
three_play_client = ThreePLayMediaClient(**self.video_transcript_preferences)
three_play_client = ThreePlayMediaClient(**self.video_transcript_preferences)
with self.assertRaises(ThreePlayMediaUrlError):
three_play_client.validate_media_url()
......@@ -172,7 +172,7 @@ class ThreePlayMediaClientTests(TestCase):
)
responses.add(responses.POST, u'https://api.3playmedia.com/files', **response)
three_play_client = ThreePLayMediaClient(**self.video_transcript_preferences)
three_play_client = ThreePlayMediaClient(**self.video_transcript_preferences)
with self.assertRaises(ThreePlayMediaPerformTranscriptionError):
three_play_client.submit_media()
......@@ -207,7 +207,7 @@ class ThreePlayMediaClientTests(TestCase):
"""
responses.add(responses.HEAD, u'https://s3.amazonaws.com/bkt/video.mp4', **first_response)
responses.add(responses.POST, u'https://api.3playmedia.com/files', **second_response)
three_play_client = ThreePLayMediaClient(**self.video_transcript_preferences)
three_play_client = ThreePlayMediaClient(**self.video_transcript_preferences)
three_play_client.generate_transcripts()
self.assertFalse(mock_log.info.called)
......
......@@ -13,7 +13,7 @@ from boto.s3.key import Key
from django.core.urlresolvers import reverse
import veda_deliver_xuetang
from control.veda_deliver_3play import ThreePLayMediaClient
from control.veda_deliver_3play import ThreePlayMediaClient
from control_env import *
from veda_deliver_cielo import Cielo24Transcript
from veda_deliver_youtube import DeliverYoutube
......@@ -601,7 +601,7 @@ class VedaDelivery:
org=org,
edx_video_id=self.video_query.studio_id,
)
three_play_media = ThreePLayMediaClient(
three_play_media = ThreePlayMediaClient(
org=org,
video=self.video_query,
media_url=s3_video_url,
......
......@@ -43,7 +43,7 @@ class ThreePlayMediaUrlError(ThreePlayMediaError):
pass
class ThreePLayMediaClient(object):
class ThreePlayMediaClient(object):
def __init__(self, org, video, media_url, api_key, api_secret, callback_url, turnaround_level):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment