From bdf161dcb6d3dfb6e2404ac88aaa24dbe0be402d Mon Sep 17 00:00:00 2001 From: mckadesorensen Date: Thu, 31 Oct 2024 14:40:14 -0800 Subject: [PATCH] fet: remove unused code --- tests/test_app.py | 7 ------- thin_egress_app/app.py | 5 ----- 2 files changed, 12 deletions(-) diff --git a/tests/test_app.py b/tests/test_app.py index 5bf48a98..f58fd561 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -736,13 +736,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 d314b447..640ddc69 100644 --- a/thin_egress_app/app.py +++ b/thin_egress_app/app.py @@ -746,11 +746,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():