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.
* release/2.0.0: bump to 2.0.0 rebranded to emailable
- Loading branch information
Showing
10 changed files
with
40 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ | |
# Python egg metadata, regenerated from source files by setuptools. | ||
/*.egg-info | ||
/*.egg | ||
/*.eggs | ||
|
||
/build/ |
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
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 +1 @@ | ||
1.0.1 | ||
2.0.0 |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,29 +1,29 @@ | ||
from unittest import TestCase | ||
import blazeverify | ||
import emailable | ||
|
||
class TestClient(TestCase): | ||
def setUp(self): | ||
self.client = blazeverify.Client('test_7aff7fc0142c65f86a00') | ||
self.response = self.client.verify('johndoe+tag@blazeverify.com') | ||
self.client = emailable.Client('test_7aff7fc0142c65f86a00') | ||
self.response = self.client.verify('johndoe+tag@emailable.com') | ||
|
||
def test_invalid_api_key(self): | ||
client = blazeverify.Client('test_7aff7fc0141c65f86a00') | ||
client = emailable.Client('test_7aff7fc0141c65f86a00') | ||
self.assertRaises( | ||
blazeverify.AuthError, | ||
emailable.AuthError, | ||
client.verify, | ||
'evan@blazeverify.com' | ||
'evan@emailable.com' | ||
) | ||
|
||
def test_missing_api_key(self): | ||
self.client.api_key = None | ||
self.assertRaises( | ||
blazeverify.AuthError, | ||
emailable.AuthError, | ||
self.client.verify, | ||
'evan@blazeverify.com' | ||
'evan@emailable.com' | ||
) | ||
|
||
def test_verify_returns_response(self): | ||
self.assertIsInstance(self.response, blazeverify.Response) | ||
self.assertIsInstance(self.response, emailable.Response) | ||
|
||
def test_verification_role(self): | ||
response = self.client.verify('[email protected]') | ||
|
@@ -51,7 +51,7 @@ def test_verification_name_and_gender(self): | |
|
||
def test_batch_creation(self): | ||
response = self.client.batch( | ||
['evan@blazeverify.com', 'jarrett@blazeverify.com'] | ||
['evan@emailable.com', 'jarrett@emailable.com'] | ||
) | ||
self.assertIsNotNone(response.id) | ||
|
||
|