Skip to content

Commit

Permalink
fixed UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
Abinaya-Shunmugavel committed Nov 19, 2024
1 parent a1def56 commit ec752d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/xml/test_MultiPartyCallElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_default_xml(self):
'statusCallbackEvents="mpc-state-changes,participant-state-changes" ' \
'statusCallbackMethod="POST" stayAlone="false" ' \
'stopRecordingAudioMethod="GET" ' \
'waitMusicMethod="GET">Nairobi</MultiPartyCall>'
'waitMusicMethod="GET" transcript="false">Nairobi</MultiPartyCall>'

element = plivoxml.MultiPartyCallElement(content='Nairobi', role='Agent')
self.assertXmlEqual(element.to_string(False), expected_response)
Expand Down Expand Up @@ -79,13 +79,15 @@ def test_builder_setting(self):
'statusCallbackMethod="POST" stayAlone="false" stopRecordingAudio="http://plivo.com/api.mp3" ' \
'stopRecordingAudioMethod="GET" ' \
'waitTime="5" ' \
'waitMusicMethod="GET" recordMinMemberCount="1">Helsinki</MultiPartyCall> '
'waitMusicMethod="GET" recordMinMemberCount="1" transcript="true" transcriptionUrl="http://plivo.com/api.mp3" >Helsinki</MultiPartyCall> '
element = plivoxml.MultiPartyCallElement(content='Helsinki', role='customer'). \
set_max_duration(4500).set_max_participants(9).set_end_mpc_on_exit(True). \
set_customer_hold_music_url('http://plivo.com/voice.mp3').set_coach_mode(False). \
set_on_exit_action_url('http://plivo.com/api.mp3').set_on_exit_action_method('GET'). \
set_stop_recording_audio("http://plivo.com/api.mp3"). \
set_start_recording_audio("http://plivo.com/api.mp3"). \
set_wait_time(5)
set_wait_time(5). \
set_transcript(True). \
set_transcription_url("http://plivo.com/api.mp3")

self.assertXmlEqual(expected_xml, element.to_string(False))

0 comments on commit ec752d1

Please sign in to comment.