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 ec752d1 commit 59efd11
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/xml/test_responseElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ def test_add_mpc(self):
'statusCallbackMethod="GET" stayAlone="false" ' \
'stopRecordingAudio="https://plivo.com/plivoTone.mp3" ' \
'stopRecordingAudioMethod="GET" ' \
'transcript="true" ' \
'transcriptionUrl="https://plivo.com/plivoTone.mp3" ' \
'waitMusicMethod="POST" ' \
'waitTime="5" ' \
'waitMusicUrl="https://plivo.com/plivoTone.mp3">multi party conference</MultiPartyCall>' \
'waitMusicUrl = "https://plivo.com/plivoTone.mp3" ' \
'waitTime="5">multi party conference</MultiPartyCall> ' \
'</Response>'

elem = plivoxml.ResponseElement().add_multi_party_call(content='multi party conference', role='customer',
Expand All @@ -132,5 +134,7 @@ def test_add_mpc(self):
enter_sound='beep:2', exit_sound='beep:1', hold=True,
on_exit_action_url='https://plivo.com/exitAction',
start_recording_audio='https://plivo.com/plivoTone.mp3',
stop_recording_audio='https://plivo.com/plivoTone.mp3')
stop_recording_audio='https://plivo.com/plivoTone.mp3',
transcript=True,
transcription_url="https://plivo.com/plivoTone.mp3")
self.assertXmlEqual(expected_xml, elem.to_string(False))

0 comments on commit 59efd11

Please sign in to comment.