Refactor JWT auth to not import app locally

This commit is contained in:
Joseph Schorr 2015-06-12 17:58:19 -04:00
parent ee154c37a8
commit 331c300893
4 changed files with 27 additions and 24 deletions

View file

@ -94,7 +94,8 @@ class JWTAuthTestCase(LiveServerTestCase):
self.jwt_auth = JWTAuthUsers(
self.get_server_url() + '/user/exists',
self.get_server_url() + '/user/verify',
'authy', JWTAuthTestCase.public_key.name)
'authy', '', app.config['HTTPCLIENT'],
JWTAuthTestCase.public_key.name)
def tearDown(self):
finished_database_for_testing(self)