Skip to content

Commit

Permalink
fix tests and bump version (#41)
Browse files Browse the repository at this point in the history
* fix tests and bump version

* lint files and add pipfile.lock to .gitignore
  • Loading branch information
d-telnyx authored Dec 18, 2020
1 parent f81290b commit 7ea09ca
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 593 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [2.7, 3.6, 3.7, pypy-2.7]
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, pypy-2.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ htmlcov/

# SonarQube
sonar-project.*
.pypirc-telnyx
.pypirc-telnyx

Pipfile.lock
3 changes: 0 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ tox = "*"
coveralls = "*"
black = {version = "==19.3b0", markers = "python_version >= '3.6'"}
twine = "*"

[requires]
python_version = "3.7"
582 changes: 0 additions & 582 deletions Pipfile.lock

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
[![image](https://img.shields.io/pypi/v/telnyx.svg)][pypi]
[![image](https://img.shields.io/pypi/l/telnyx.svg)][pypi]
[![image](https://img.shields.io/pypi/pyversions/telnyx.svg)][pypi]
![Build Status](https://github.com/team-telnyx/telnyx-python/workflows/Python/badge.svg)
[![Build Status](https://github.com/team-telnyx/telnyx-python/workflows/Python/badge.svg)][Actions]
[![Coverage Status](https://coveralls.io/repos/github/team-telnyx/telnyx-python/badge.svg?branch=master)][coveralls]
[![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://joinslack.telnyx.com/)

[pypi]: https://pypi.org/project/telnyx/
[travis]: https://travis-ci.org/team-telnyx/telnyx-python
[Actions]: https://github.com/team-telnyx/telnyx-python/actions
[coveralls]: https://coveralls.io/github/team-telnyx/telnyx-python?branch=master

The Telnyx Python library provides convenient access to the Telnyx API from
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.2.0
2 changes: 1 addition & 1 deletion telnyx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
log = None


__version__ = "1.0.0b5"
__version__ = "1.2.0"


# Sets some basic information about the running application that's sent along
Expand Down
4 changes: 3 additions & 1 deletion tests/api_resources/test_fqdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def test_is_retrievable(self, request_mock):
assert isinstance(resource, telnyx.FQDN)

def test_is_creatable(self, request_mock):
resource = telnyx.FQDN.create(fqdn="example.com")
resource = telnyx.FQDN.create(
fqdn="example.com", dns_record_type="a", connection_id="1123"
)
request_mock.assert_requested("post", "/v2/fqdns")
assert isinstance(resource, telnyx.FQDN)

Expand Down
4 changes: 3 additions & 1 deletion tests/api_resources/test_fqdn_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def test_is_retrievable(self, request_mock):
assert isinstance(resource, telnyx.FQDNConnection)

def test_is_creatable(self, request_mock):
resource = telnyx.FQDNConnection.create(active=True)
resource = telnyx.FQDNConnection.create(
active=True, connection_name="Test Name"
)
request_mock.assert_requested("post", "/v2/fqdn_connections")
assert isinstance(resource, telnyx.FQDNConnection)

Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ envlist = py27,
py35,
py36,
py37,
py38,
py39,
pypy,
pypy3,
lint
Expand Down

0 comments on commit 7ea09ca

Please sign in to comment.