Skip to content

Commit

Permalink
Try to fix tox for py27
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSC committed Jan 25, 2018
1 parent e1b13a8 commit c00c320
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_oauth.py
Expand Up @@ -30,8 +30,6 @@
import unittest
import os

sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),'..')))

import httplib2
import mock

Expand All @@ -45,7 +43,7 @@
from oauth10a._compat import u

import oauth10a as oauth
import example.server as exampleserver
import example

_UEMPTY = u('')
_UBLANK = u(' ')
Expand Down Expand Up @@ -1793,7 +1791,7 @@ def test_form_encoded_post_with_charset_in_content_type(self):

class TestDataStore(unittest.TestCase):
def test_lookup_consumer(self):
data_store = exampleserver.MockOAuthDataStore()
data_store = example.server.MockOAuthDataStore()

consumer = data_store.lookup_consumer('key')
self.assertTrue(isinstance(consumer, oauth.Consumer))
Expand All @@ -1802,7 +1800,7 @@ def test_lookup_consumer(self):
self.assertEqual(consumer2, None)

def test_lookup_token(self):
data_store = exampleserver.MockOAuthDataStore()
data_store = example.server.MockOAuthDataStore()

request = data_store.lookup_token('request', 'requestkey')
self.assertTrue(isinstance(request, oauth.Token))
Expand Down

0 comments on commit c00c320

Please sign in to comment.