Skip to content

Commit 67340ec

Browse files
Cleaning up the tests and adding a Mock object for the urllib_request.urlopen call
1 parent bcd2d97 commit 67340ec

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

sendgrid/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from urllib import urlencode
1212

1313
from .exceptions import SendGridClientError, SendGridServerError
14-
from resources.apikeys import APIKeys
14+
from .resources.apikeys import APIKeys
1515

1616
class SendGridAPIClient(object):
1717

test/test_apikeys.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class TestAPIKeys(unittest.TestCase):
4646
def setUp(self):
4747
SendGridAPIClient = MockSendGridAPIClientRequest
4848
self.client = SendGridAPIClient(SG_KEY)
49-
print self.client._build_request(self.client)
5049

5150
def test_apikeys_init(self):
5251
self.apikeys = self.client.apikeys

0 commit comments

Comments
 (0)