forked from emailable/emailable-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed class declaration to new-style
- Loading branch information
1 parent
b8f957d
commit cc06fd9
Showing
4 changed files
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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): | ||
|