8000 Rename ConversationGrant to ConversationsGrant · brianduan/twilio-python@a22f04d · GitHub
[go: up one dir, main page]

Skip to content

Commit a22f04d

Browse files
committed
Rename ConversationGrant to ConversationsGrant
1 parent c261b9d commit a22f04d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_access_token.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from nose.tools import assert_equal
44
from twilio.jwt import decode
5-
from twilio.access_token import AccessToken, ConversationGrant, IpMessagingGrant
5+
from twilio.access_token import AccessToken, ConversationsGrant, IpMessagingGrant
66

77
ACCOUNT_SID = 'AC123'
88
SIGNING_KEY_SID = 'SK123'
@@ -36,7 +36,7 @@ def test_empty_grants(self):
3636

3737
def test_conversations_grant(self):
3838
scat = AccessToken(ACCOUNT_SID, SIGNING_KEY_SID, 'secret')
39-
scat.add_grant(ConversationGrant())
39+
scat.add_grant(ConversationsGrant())
4040

4141
token = str(scat)
4242
assert_is_not_none(token)
@@ -58,7 +58,7 @@ def test_ip_messaging_grant(self):
5858

5959
def test_grants(self):
6060
scat = AccessToken(ACCOUNT_SID, SIGNING_KEY_SID, 'secret')
61-
scat.add_grant(ConversationGrant())
61+
scat.add_grant(ConversationsGrant())
6262
scat.add_grant(IpMessagingGrant())
6363

6464
token = str(scat)

twilio/access_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def to_payload(self):
2828
return grant
2929

3030

31-
class ConversationGrant(object):
31+
class ConversationsGrant(object):
3232
def __init__(self, configuration_profile_sid=None):
3333
self.configuration_profile_sid = configuration_profile_sid
3434

0 commit comments

Comments
 (0)
0