8000 Correct enqueue wait url attributes to camelCase · Twilio-api/twilio-python@f8b0e78 · GitHub
[go: up one dir, main page]

Skip to content

Commit f8b0e78

Browse files
committed
Correct enqueue wait url attributes to camelCase
1 parent 4218ecb commit f8b0e78

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/test_twiml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class TestEnqueue(TwilioTest):
376376
def setUp(self):
377377
r = Response()
378378
r.enqueue("TestEnqueueAttribute", action="act", method='GET',
379-
wait_url='wait', wait_url_method='POST')
379+
waitUrl='wait', waitUrlMethod='POST')
380380
xml = r.toxml()
381381

382382
#parse twiml XML string with Element Tree and inspect
@@ -388,7 +388,7 @@ def test_conf_text(self):
388388
self.assertEqual(self.conf.text.strip(), "TestEnqueueAttribute")
389389

390390
def test_conf_waiturl(self):
391-
self.assertEqual(self.conf.get('wait_url'), "wait")
391+
self.assertEqual(self.conf.get('waitUrl'), "wait")
392392

393393
def test_conf_method(self):
394394
self.assertEqual(self.conf.get('method'), "GET")
@@ -397,7 +397,7 @@ def test_conf_action(self):
397397
self.assertEqual(self.conf.get('action'), "act")
398398

399399
def test_conf_waitmethod(self):
400-
self.assertEqual(self.conf.get('wait_url_method'), "POST")
400+
self.assertEqual(self.conf.get('waitUrlMethod'), "POST")
401401

402402

403403
class TestDial(TwilioTest):

twilio/twiml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,9 @@ class Enqueue(Verb):
445445
leaves the queue. When dequeued via a <Dial> verb,
446446
this url is executed after the bridged parties disconnect
447447
:param method: HTTP method for action GET/POST
448-
:param wait_url: url to a twiml document that executes
448+
:param waitUrl: url to a twiml document that executes
449449
while the call is on the queue
450-
:param wait_url_method: HTTP method for wait_url GET/POST
450+
:param waitUrlMethod: HTTP method for waitUrl GET/POST
451451
"""
452452
GET = 'GET'
453453
POST = 'POST'

0 commit comments

Comments
 (0)
0