mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-05 16:38:26 -04:00
Fixing pull requests comments
- full path to imports - renamed client lib from jwt->authentication
This commit is contained in:
@@ -11,5 +11,5 @@ main = Blueprint('main', __name__)
|
|||||||
main.before_request(requires_auth)
|
main.before_request(requires_auth)
|
||||||
|
|
||||||
|
|
||||||
from .views import notifications, index
|
from app.main.views import notifications, index
|
||||||
from . import errors
|
from app.main import errors
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
from flask import request, jsonify, _request_ctx_stack
|
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
|
from client.errors import TokenDecodeError, TokenRequestError, TokenExpiredError, TokenPayloadError
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from flask import jsonify
|
from flask import jsonify
|
||||||
|
|
||||||
from . import main
|
from app.main import main
|
||||||
|
|
||||||
|
|
||||||
@main.app_errorhandler(400)
|
@main.app_errorhandler(400)
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ Flask==0.10.1
|
|||||||
Flask-Script==2.0.5
|
Flask-Script==2.0.5
|
||||||
PyJWT==1.4.0
|
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
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
from flask import json
|
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):
|
def test_should_not_allow_request_with_no_token(notify_api):
|
||||||
|
|||||||
Reference in New Issue
Block a user