Skip to content

Commit

Permalink
Fixing flake8 mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
leportella committed Jan 15, 2019
1 parent b0c73d3 commit e3fb956
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions nativeauthenticator/nativeauthenticator.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import bcrypt
import re
from jupyterhub.orm import User
from jupyterhub.auth import Authenticator

from sqlalchemy import inspect
from sqlalchemy.orm import relationship
from tornado import gen
from traitlets import Bool

Expand Down
3 changes: 1 addition & 2 deletions nativeauthenticator/tests/test_authenticator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
from jupyterhub.orm import User
from jupyterhub.tests.mocking import MockHub

from nativeauthenticator import NativeAuthenticator
Expand Down Expand Up @@ -27,7 +26,7 @@ def app():
async def test_auth_get_or_create(tmpcwd, app):
'''Test if method get_or_create_user creates a new user'''
auth = NativeAuthenticator(db=app.db)
user = auth.get_or_create_user('John Snow', 'password')
auth.get_or_create_user('John Snow', 'password')
user_info = UserInfo.find(app.db, 'John Snow')
assert user_info.username == 'John Snow'

Expand Down

0 comments on commit e3fb956

Please sign in to comment.