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 4747 TWILIO_FROM_NUMBER : ${{ secrets.TWILIO_FROM_NUMBER }}
4848 TWILIO_TO_NUMBER : ${{ secrets.TWILIO_TO_NUMBER }}
4949 TWILIO_AUTH_TOKEN : ${{ secrets.TWILIO_AUTH_TOKEN }}
50+ ASSISTANT_ID : ${{ secrets.ASSISTANT_ID }}
5051 run : make cluster-test
5152
5253 - name : Verify docs generation
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ def setUp(self):
1212 self .api_key = os .environ ["TWILIO_API_KEY" ]
1313 self .api_secret = os .environ ["TWILIO_API_SECRET" ]
1414 self .account_sid = os .environ ["TWILIO_ACCOUNT_SID" ]
15+ self .assistant_id = os .environ ["ASSISTANT_ID" ]
1516 self .client = Client (
1617 username = self .api_key ,
1718 password = self .api_secret ,
@@ -65,6 +66,11 @@ def test_list_available_numbers(self):
6566 self .assertIsNotNone (toll_free_numbers )
6667 self .assertEqual (len (toll_free_numbers ), 2 )
6768
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+
6874 def test_calling_twiml_string (self ):
6975 call = self .client .calls .create (
7076 to = self .to_number , from_ = self .from_number , twiml = str (self .voice_twiml )
Original file line number Diff line number Diff line change 11from warnings import warn
22
3- from twilio .rest .assistants import AssistantsBase
3+ from twilio .rest .assistants . AssistantsBase import AssistantsBase
44from twilio .rest .assistants .v1 .assistant import AssistantList
55from twilio .rest .assistants .v1 .knowledge import KnowledgeList
66from twilio .rest .assistants .v1 .policy import PolicyList
You can’t perform that action at this time.
0 commit comments