From 665870d9af595e96f25ec4c9fac1eb50c747356f Mon Sep 17 00:00:00 2001 From: sharkinsspatial Date: Tue, 6 Feb 2024 18:55:35 -0600 Subject: [PATCH] Remove HEAD request failure handling from test_laads_available. --- .../tests/test_laads_available.py | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/lambda_functions/tests/test_laads_available.py b/lambda_functions/tests/test_laads_available.py index 6224bac..1ad9104 100644 --- a/lambda_functions/tests/test_laads_available.py +++ b/lambda_functions/tests/test_laads_available.py @@ -47,28 +47,3 @@ def test_handler(s3): response = handler(event, {}) assert response == expected - - # def head_object_notexists(Bucket, Key): - # raise ClientError( - # error_response={"Error": {"Code": "404"}}, operation_name="head_obj" - # ) - - # monkeypatch.setattr( - # lambda_functions.laads_available.s3, "head_object", head_object_notexists - # ) - # ret = handler(event, {}) - # response["available"] = False - # assert ret == response - - # def head_object_exception(Bucket, Key): - # raise ClientError( - # error_response={"Error": {"Code": "403"}}, operation_name="head_obj" - # ) - - # monkeypatch.setattr( - # lambda_functions.laads_available.s3, "head_object", head_object_exception - # ) - - # with pytest.raises(Exception): - # ret = handler(event, {}) - # assert ret == response