From 70f8e2021cdf7fa8bc3b503beade3c735c9c1e9f Mon Sep 17 00:00:00 2001 From: Abinaya-Shunmugavel Date: Thu, 14 Nov 2024 18:01:23 +0530 Subject: [PATCH] corrected spelling --- plivo/resources/transcription.py | 22 +++++++++++----------- tests/resources/test_transcriptions.py | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/plivo/resources/transcription.py b/plivo/resources/transcription.py index 7c6c9825..5301a7d8 100644 --- a/plivo/resources/transcription.py +++ b/plivo/resources/transcription.py @@ -14,14 +14,14 @@ class Transcription(PlivoResource): _name = 'Transcription' _identifier_string = 'transcription_id' - def get_tanscription(self): - return self.client.transcriptions.get_tanscription(self.id, **to_param_dict(self.get_tanscription(), locals())) + def get_transcription(self): + return self.client.transcriptions.get_transcription(self.id, **to_param_dict(self.get_transcription(), locals())) - def create_tanscription(self): - return self.client.transcriptions.create_tanscription(self.id, **to_param_dict(self.create_tanscription(), locals())) + def create_transcription(self): + return self.client.transcriptions.create_transcription(self.id, **to_param_dict(self.create_transcription(), locals())) - def delete_tanscription(self): - return self.client.transcriptions.delete_tanscription(self.id, **to_param_dict(self.delete_tanscription(), locals())) + def delete_transcription(self): + return self.client.transcriptions.delete_transcription(self.id, **to_param_dict(self.delete_transcription(), locals())) class Transcriptions(PlivoResourceInterface): @@ -29,19 +29,19 @@ class Transcriptions(PlivoResourceInterface): @validate_args(transcription_id=[of_type(six.text_type)] ) - def get_tanscription(self, transcription_id, type=None): + def get_transcription(self, transcription_id, type=None): if not type: return self.client.request( 'GET', ('Transcription', transcription_id), is_voice_request=True) else: return self.client.request( - 'GET', ('Transcription', transcription_id), to_param_dict(self.get_tanscription, locals()), is_voice_request=True) + 'GET', ('Transcription', transcription_id), to_param_dict(self.get_transcription, locals()), is_voice_request=True) - def create_tanscription(self, recording_id, transcription_callback_url=None): + def create_transcription(self, recording_id, transcription_callback_url=None): return self.client.request( - 'POST', ('Transcription', recording_id), to_param_dict(self.create_tanscription, locals()), is_voice_request=True) + 'POST', ('Transcription', recording_id), to_param_dict(self.create_transcription, locals()), is_voice_request=True) - def delete_tanscription(self, transcription_id): + def delete_transcription(self, transcription_id): return self.client.request( 'DELETE', ('Transcription', transcription_id), is_voice_request=True) diff --git a/tests/resources/test_transcriptions.py b/tests/resources/test_transcriptions.py index c61ffaa6..8b9b062f 100644 --- a/tests/resources/test_transcriptions.py +++ b/tests/resources/test_transcriptions.py @@ -11,7 +11,7 @@ class TranscriptionTest(PlivoResourceTestCase): @with_response(200) def test_get(self): - transcription = self.client.transcriptions.get_tanscription('e12d05fe-6979-485c-83dc-9276114dba3b') + transcription = self.client.transcriptions.get_transcription('e12d05fe-6979-485c-83dc-9276114dba3b') self.assertResponseMatches(transcription) @@ -27,7 +27,7 @@ def test_get(self): @with_response(201) def test_create(self): - self.client.transcriptions.create_tanscription( + self.client.transcriptions.create_transcription( recording_id='8605287e-1e1a-4341-8235-23574357d6f1') # self.assertResponseMatches(transcription) @@ -46,7 +46,7 @@ def test_create(self): @with_response(202) def test_delete(self): - transcription = self.client.transcriptions.delete_tanscription( + transcription = self.client.transcriptions.delete_transcription( '8605287e-1e1a-4341-8235-23574357d6f1') self.assertResponseMatches(transcription)