File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 47
47
TWILIO_FROM_NUMBER : ${{ secrets.TWILIO_FROM_NUMBER }}
48
48
TWILIO_TO_NUMBER : ${{ secrets.TWILIO_TO_NUMBER }}
49
49
TWILIO_AUTH_TOKEN : ${{ secrets.TWILIO_AUTH_TOKEN }}
50
+ ASSISTANT_ID : ${{ secrets.ASSISTANT_ID }}
50
51
run : make cluster-test
51
52
52
53
- name : Verify docs generation
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ def setUp(self):
12
12
self .api_key = os .environ ["TWILIO_API_KEY" ]
13
13
self .api_secret = os .environ ["TWILIO_API_SECRET" ]
14
14
self .account_sid = os .environ ["TWILIO_ACCOUNT_SID" ]
15
+ self .assistant_id = os .environ ["ASSISTANT_ID" ]
15
16
self .client = Client (
16
17
username = self .api_key ,
17
18
password = self .api_secret ,
@@ -65,6 +66,11 @@ def test_list_available_numbers(self):
65
66
self .assertIsNotNone (toll_free_numbers )
66
67
self .assertEqual (len (toll_free_numbers ), 2 )
67
68
69
+ def test_fetch_assistant (self ):
70
+ assistant = self .client .assistants .v1 .assistants (self .assistant_id ).fetch ()
71
+ self .assertIsNotNone (assistant )
72
+ self .assertEqual (assistant .account_sid , self .account_sid )
73
+
68
74
def test_calling_twiml_string (self ):
69
75
call = self .client .calls .create (
70
76
to = self .to_number , from_ = self .from_number , twiml = str (self .voice_twiml )
Original file line number Diff line number Diff line change 1
1
from warnings import warn
2
2
3
- from twilio .rest .assistants import AssistantsBase
3
+ from twilio .rest .assistants . AssistantsBase import AssistantsBase
4
4
from twilio .rest .assistants .v1 .assistant import AssistantList
5
5
from twilio .rest .assistants .v1 .knowledge import KnowledgeList
6
6
from twilio .rest .assistants .v1 .policy import PolicyList
You can’t perform that action at this time.
0 commit comments