Skip to content

Commit

Permalink
Changed class declaration to new-style
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardoduarte committed May 21, 2021
1 parent b8f957d commit cc06fd9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion emailable/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ResourceNotFoundError, RateLimitExceededError,
ServerUnavailableError)

class Client:
class Client(object):

def __init__(self, api_key):
self.api_key = api_key
Expand Down
2 changes: 1 addition & 1 deletion emailable/response.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Response:
class Response(object):

def __init__(self, response):
self.status_code = response.status_code
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "emailable-backport"
version = "0.1.0"
version = "1.0.0"
description = "This is the backport to python 2.7 of the official python wrapper for the Emailable API."
authors = ["Bernardo Duarte <[email protected]>"]
homepage = "https://github.com/bernardoduarte"
Expand Down
4 changes: 0 additions & 4 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ def valid_client():
def valid_response(valid_client):
return valid_client.verify('[email protected]')

# def setUp(self):
# self.client = emailable.Client('test_7aff7fc0142c65f86a00')
# self.response = self.client.verify('[email protected]')

def test_invalid_api_key():
client = emailable.Client('test_7aff7fc0141c65f86a00')
with pytest.raises(emailable.AuthError):
Expand Down

0 comments on commit cc06fd9

Please sign in to comment.