Fixing pull requests comments

- full path to imports
- renamed client lib from jwt->authentication
This commit is contained in:
Martyn Inglis
2015-12-15 14:36:57 +00:00
parent 87138c86f8
commit 4caf0fcad6
5 changed files with 6 additions and 6 deletions

View File

@@ -11,5 +11,5 @@ main = Blueprint('main', __name__)
main.before_request(requires_auth)
from .views import notifications, index
from . import errors
from app.main.views import notifications, index
from app.main import errors

View File

@@ -1,5 +1,5 @@
from flask import request, jsonify, _request_ctx_stack
from client.jwt import decode_jwt_token, get_token_issuer
from client.authentication import decode_jwt_token, get_token_issuer
from client.errors import TokenDecodeError, TokenRequestError, TokenExpiredError, TokenPayloadError

View File

@@ -1,6 +1,6 @@
from flask import jsonify
from . import main
from app.main import main
@main.app_errorhandler(400)

View File

@@ -2,4 +2,4 @@ Flask==0.10.1
Flask-Script==2.0.5
PyJWT==1.4.0
git+https://github.com/alphagov/notifications-python-client.git@0.1.2#egg=notifications-python-client==0.1.2
git+https://github.com/alphagov/notifications-python-client.git@0.1.5#egg=notifications-python-client==0.1.5

View File

@@ -1,5 +1,5 @@
from flask import json
from client.jwt import create_jwt_token
from client.authentication import create_jwt_token
def test_should_not_allow_request_with_no_token(notify_api):