mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
more flake8. lots of unused imports and variables that didn't get used. i tried to preserve old variable names as comments when it looked like they were useful (eg when they were describing timestamps)
This commit is contained in:
@@ -9,7 +9,6 @@ import flask
|
||||
from flask import json, current_app
|
||||
from freezegun import freeze_time
|
||||
from notifications_python_client.authentication import create_jwt_token
|
||||
from notifications_utils.request_helper import check_proxy_header_before_request
|
||||
|
||||
from app import api_user
|
||||
from app.dao.api_key_dao import get_unsigned_secrets, save_model_api_key, get_unsigned_secret, expire_api_key
|
||||
@@ -281,7 +280,7 @@ def test_authentication_returns_error_when_service_has_no_secrets(client,
|
||||
|
||||
|
||||
def test_should_attach_the_current_api_key_to_current_app(notify_api, sample_service, sample_api_key):
|
||||
with notify_api.test_request_context() as context, notify_api.test_client() as client:
|
||||
with notify_api.test_request_context(), notify_api.test_client() as client:
|
||||
token = __create_token(sample_api_key.service_id)
|
||||
response = client.get(
|
||||
'/notifications',
|
||||
|
||||
Reference in New Issue
Block a user