Skip to content

Commit

Permalink
Updated tests in auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ej2 committed Mar 27, 2018
1 parent 157daf2 commit b254493
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def read(*parts):
return fp.read()


VERSION = (0, 7, 3)
VERSION = (0, 7, 4)
version = '.'.join(map(str, VERSION))

setup(
Expand Down
7 changes: 0 additions & 7 deletions tests/unit/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,19 @@ def test_init(self):
consumer_secret='secret',
access_token='token',
access_token_secret='tokensecret',
sandbox=True
)

self.assertEquals(session_manager.consumer_key, 'key')
self.assertEquals(session_manager.consumer_secret, 'secret')
self.assertEquals(session_manager.access_token, 'token')
self.assertEquals(session_manager.access_token_secret, 'tokensecret')
self.assertEquals(session_manager.sandbox, True)

def test_start_session(self):
session_manager = Oauth1SessionManager(
consumer_key='key',
consumer_secret='secret',
access_token='token',
access_token_secret='tokensecret',
sandbox=True
)

session = session_manager.start_session()
Expand All @@ -50,7 +47,6 @@ def test_start_session_no_consumer_key(self):
consumer_secret='secret',
access_token='token',
access_token_secret='tokensecret',
sandbox=True
)

try:
Expand All @@ -70,7 +66,6 @@ def test_start_session_no_consumer_secret(self):
consumer_secret='',
access_token='token',
access_token_secret='tokensecret',
sandbox=True
)

try:
Expand All @@ -90,7 +85,6 @@ def test_start_session_no_access_token(self):
consumer_secret='secret',
access_token='',
access_token_secret='tokensecret',
sandbox=True
)

try:
Expand All @@ -110,7 +104,6 @@ def test_start_session_no_token_secret(self):
consumer_secret='secret',
access_token='token',
access_token_secret='',
sandbox=True
)

try:
Expand Down

0 comments on commit b254493

Please sign in to comment.