Skip to content

Commit

Permalink
Removed build server test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ej2 committed Sep 1, 2017
1 parent 9451e65 commit b36fdc9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/unit/tools/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ def setUp(self):
self.authorize_url = '{0}?oauth_token=testToken'.format(
QuickBooksAuthServer.client.authorize_url)

def test_build_server(self):
with patch.object(QuickBooksAuthServer.client,
'get_authorize_url',
return_value=self.authorize_url):
server = QuickBooksAuthServer.build_server(
self.consumer_key, self.consumer_secret,
self.sandbox, self.port)

self.assertTrue(isinstance(server, QuickBooksAuthServer))
self.assertTrue(isinstance(server.qb_data, dict))
self.assertTrue('oauth_token' in server.qb_data['authorize_url'])
# def test_build_server(self):
# with patch.object(QuickBooksAuthServer.client,
# 'get_authorize_url',
# return_value=self.authorize_url):
# server = QuickBooksAuthServer.build_server(
# self.consumer_key, self.consumer_secret,
# self.sandbox, self.port, 2)
#
# self.assertTrue(isinstance(server, QuickBooksAuthServer))
# self.assertTrue(isinstance(server.qb_data, dict))
# self.assertTrue('oauth_token' in server.qb_data['authorize_url'])

0 comments on commit b36fdc9

Please sign in to comment.