Skip to content

Commit c28e266

Browse files
PauseRecording Update
1 parent 1fca69e commit c28e266

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bandwidth/model/bxml/verbs/pause_recording.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ class PauseRecording(TerminalVerb):
1313
def __init__(self):
1414
"""Initialize a <PauseRecording> verb
1515
"""
16-
super().__init__(tag="PauseRecording", content=None, attributes=None)
16+
super().__init__(tag="PauseRecording", content=None)

test/unit/bxml/test_gather.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ def setUp(self):
4545

4646
def test_to_bxml(self):
4747
if os.environ['PYTHON_VERSION'] == '3.7':
48-
expected = '<Gather fallbackPassword="pass" fallbackUsername="user" firstDigitTimeout="3" gatherUrl="test.com" gatherMethod="POST" gatherFallback_url="fallback-test.com" gatherFallbackMethod="GET" interDigitTimeout="1" password="pass" maxDigits="5"><PlayAudio password="pass" username="user">https://audio.url/audio1.wav</PlayAudio> repeatCount="2" tag="tag" terminatingDigits="2" username="user"</Gather>'
48+
expected = '<Gather fallbackPassword="pass" fallbackUsername="user" firstDigitTimeout="3" gatherUrl="test.com" gatherMethod="POST" gatherFallback_url="fallback-test.com" gatherFallbackMethod="GET" interDigitTimeout="1" maxDigits="5" password="pass" repeatCount="2" tag="tag" terminatingDigits="2" username="user"><PlayAudio password="pass" username="user">https://audio.url/audio1.wav</PlayAudio></Gather>'
4949
else:
5050
expected = '<Gather gatherUrl="test.com" gatherMethod="POST" gatherFallbackUrl="fallback-test.com" gatherFallbackMethod="GET" username="user" password="pass" fallbackUsername="user" fallbackPassword="pass" tag="tag" terminatingDigits="2" maxDigits="5" interDigitTimeout="1" firstDigitTimeout="3" repeatCount="2"><PlayAudio username="user" password="pass">https://audio.url/audio1.wav</PlayAudio></Gather>'
5151
assert(expected == self.gather.to_bxml())
5252

5353
def test_add_verb(self):
5454
if os.environ['PYTHON_VERSION'] == '3.7':
55-
expected = '<Gather fallbackPassword="pass" fallbackUsername="user" firstDigitTimeout="3" gatherUrl="test.com" gatherMethod="POST" gatherFallbackUrl="fallback-test.com" gatherFallbackMethod="GET" interDigitTimeout="1" password="pass" maxDigits="5"><PlayAudio password="pass" username="user">https://audio.url/audio1.wav</PlayAudio> repeatCount="2" <SpeakSentence>Hello. Your number is &lt;say-as interpret-as="telephone"&gt;asdf&lt;/say-as&gt;, lets play a game. What is 10 + 3. Press the pound key when finished.</SpeakSentence> tag="tag" terminatingDigits="2" username="user"</Gather>'
55+
expected = '<Gather fallbackPassword="pass" fallbackUsername="user" firstDigitTimeout="3" gatherUrl="test.com" gatherMethod="POST" gatherFallbackUrl="fallback-test.com" gatherFallbackMethod="GET" interDigitTimeout="1" maxDigits="5" password="pass" repeatCount="2" tag="tag" terminatingDigits="2" username="user"><PlayAudio password="pass" username="user">https://audio.url/audio1.wav</PlayAudio><SpeakSentence>Hello. Your number is &lt;say-as interpret-as="telephone"&gt;asdf&lt;/say-as&gt;, lets play a game. What is 10 + 3. Press the pound key when finished.</SpeakSentence></Gather>'
5656
else:
5757
expected = '<Gather gatherUrl="test.com" gatherMethod="POST" gatherFallbackUrl="fallback-test.com" gatherFallbackMethod="GET" username="user" password="pass" fallbackUsername="user" fallbackPassword="pass" tag="tag" terminatingDigits="2" maxDigits="5" interDigitTimeout="1" firstDigitTimeout="3" repeatCount="2"><PlayAudio username="user" password="pass">https://audio.url/audio1.wav</PlayAudio><SpeakSentence>Hello. Your number is &lt;say-as interpret-as="telephone"&gt;asdf&lt;/say-as&gt;, lets play a game. What is 10 + 3. Press the pound key when finished.</SpeakSentence></Gather>'
5858
self.gather.add_verb(self.speak_sentence)

0 commit comments

Comments
 (0)