Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: AssistantsBase import #847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 1 .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
TWILIO_AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }}
ASSISTANT_ID: ${{ secrets.ASSISTANT_ID }}
run: make cluster-test

- name: Verify docs generation
Expand Down
6 changes: 6 additions & 0 deletions 6 tests/cluster/test_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def setUp(self):
self.api_key = os.environ["TWILIO_API_KEY"]
self.api_secret = os.environ["TWILIO_API_SECRET"]
self.account_sid = os.environ["TWILIO_ACCOUNT_SID"]
self.assistant_id = os.environ["ASSISTANT_ID"]
self.client = Client(
username=self.api_key,
password=self.api_secret,
Expand Down Expand Up @@ -65,6 +66,11 @@ def test_list_available_numbers(self):
self.assertIsNotNone(toll_free_numbers)
self.assertEqual(len(toll_free_numbers), 2)

def test_fetch_assistant(self):
assistant = self.client.assistants.v1.assistants(self.assistant_id).fetch()
self.assertIsNotNone(assistant)
self.assertEqual(assistant.account_sid, self.account_sid)

def test_calling_twiml_string(self):
call = self.client.calls.create(
to=self.to_number, from_=self.from_number, twiml=str(self.voice_twiml)
Expand Down
2 changes: 1 addition & 1 deletion 2 twilio/rest/assistants/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from warnings import warn

from twilio.rest.assistants import AssistantsBase
from twilio.rest.assistants.AssistantsBase import AssistantsBase
from twilio.rest.assistants.v1.assistant import AssistantList
from twilio.rest.assistants.v1.knowledge import KnowledgeList
from twilio.rest.assistants.v1.policy import PolicyList
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.