diff --git a/tests/test_app.py b/tests/test_app.py index f79b630b..05d812ec 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -719,13 +719,6 @@ def test_try_download_from_bucket_invalid_range( mock_check_in_region_request.assert_called_once() -@mock.patch(f"{MODULE}.JWT_COOKIE_NAME", "asf-cookie") -def test_get_jwt_field(): - assert app.get_jwt_field({"asf-cookie": {"foo": "bar"}}, "foo") == "bar" - assert app.get_jwt_field({"asf-cookie": {}}, "foo") is None - assert app.get_jwt_field({}, "foo") is None - - @mock.patch(f"{MODULE}.get_urs_url", autospec=True) def test_root(mock_get_urs_url, mock_retrieve_secret, mock_make_html_response, client): del mock_retrieve_secret diff --git a/thin_egress_app/app.py b/thin_egress_app/app.py index fd9bf7c1..019b31c1 100644 --- a/thin_egress_app/app.py +++ b/thin_egress_app/app.py @@ -743,11 +743,6 @@ def try_download_from_bucket(bucket, filename, user_profile, headers: dict, api_ return make_html_response(template_vars, headers, 404, "error.html") -@with_trace() -def get_jwt_field(cookievar: dict, fieldname: str): - return cookievar.get(JWT_COOKIE_NAME, {}).get(fieldname, None) - - @app.route("/") @with_trace(context={}) def root():