Skip to content

Commit

Permalink
Update dependencies (#77)
Browse files Browse the repository at this point in the history
* use 3.7 in dockerfile too

* update dependencies

* add test for virtual_agent

* bump version

* update test output
  • Loading branch information
edolix authored Jun 21, 2023
1 parent 2740b6e commit 87b7354
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.5] - 2023-06-21
### Updated
- Update dependencies.

## [2.0.4] - 2021-11-29
### Updated
- Update compatibility SDK versions.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-alpine
FROM python:3.7-alpine

COPY . /app
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pylint = "*"
pytest-asyncio = "*"

[packages]
twilio = "==6.43.0"
twilio = "==6.54.0"
signalwire = {editable = true,path = "."}
aiohttp = "*"

Expand Down
129 changes: 123 additions & 6 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_version():
license='MIT',
packages=find_packages(exclude=['tests', 'tests.*']),
install_requires=[
'twilio==6.43.0',
'twilio==6.54.0',
'aiohttp',
],
python_requires='>=3.6',
Expand Down
2 changes: 1 addition & 1 deletion signalwire/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name = "signalwire"

__version__ = '2.0.4'
__version__ = '2.0.5'
7 changes: 7 additions & 0 deletions signalwire/tests/test_voice_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ def test_returns_laml(self):
r.say("Welcome to SignalWire!")
self.assertEqual(str(r), '<?xml version="1.0" encoding="UTF-8"?><Response><Say>Welcome to SignalWire!</Say></Response>')

def test_supports_virtual_agent(self):
from signalwire.voice_response import VoiceResponse
r = VoiceResponse()
connect = r.connect(action='http://example.com/action')
connect.virtual_agent(connectorName='project', statusCallback='https://mycallbackurl.com')
self.assertEqual(str(r), '<?xml version="1.0" encoding="UTF-8"?><Response><Connect action="http://example.com/action"><VirtualAgent connectorName="project" statusCallback="https://mycallbackurl.com" /></Connect></Response>')

0 comments on commit 87b7354

Please sign in to comment.