Skip to content

Commit

Permalink
fixed default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Abinaya-Shunmugavel committed Feb 23, 2024
1 parent 9d41665 commit 33e50e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plivo/xml/MultiPartyCallElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def __init__(
record_min_member_count=1,
wait_music_url=None,
wait_music_method='GET',
wait_time=5,
wait_time=None,
agent_hold_music_url=None,
agent_hold_music_method='GET',
customer_hold_music_url=None,
Expand Down
4 changes: 2 additions & 2 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" waitTime="5">Nairobi</MultiPartyCall>'
'waitMusicMethod="GET">Nairobi</MultiPartyCall>'

element = plivoxml.MultiPartyCallElement(content='Nairobi', role='Agent')
self.assertXmlEqual(element.to_string(False), expected_response)
Expand All @@ -36,7 +36,7 @@ def test_setting_optional_fields(self):
'statusCallbackEvents="mpc-state-changes,participant-state-changes" ' \
'statusCallbackMethod="POST" stayAlone="false" ' \
'stopRecordingAudioMethod="GET" ' \
'waitMusicMethod="GET" waitTime="5">Tokyo</MultiPartyCall>'
'waitMusicMethod="GET">Tokyo</MultiPartyCall>'

element = plivoxml.MultiPartyCallElement(content='Tokyo', role='supervisor', exit_sound='beep:1')
self.assertXmlEqual(element.to_string(False), expected_response)
Expand Down

0 comments on commit 33e50e6

Please sign in to comment.