From 025977ea6dcf7749c466d1e05bbfc0e6bd0ee207 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 13 Nov 2024 21:52:55 -0800 Subject: [PATCH] fix test_read_nonexistent_secret --- tests/local_testing/test_aws_secret_manager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/local_testing/test_aws_secret_manager.py b/tests/local_testing/test_aws_secret_manager.py index baa237dfd..f2e2319cc 100644 --- a/tests/local_testing/test_aws_secret_manager.py +++ b/tests/local_testing/test_aws_secret_manager.py @@ -134,5 +134,6 @@ async def test_read_nonexistent_secret(): secret_manager = AWSSecretsManagerV2() nonexistent_secret = f"litellm_nonexistent_{uuid.uuid4().hex}" - with pytest.raises(ValueError): - await secret_manager.async_read_secret(secret_name=nonexistent_secret) + response = await secret_manager.async_read_secret(secret_name=nonexistent_secret) + + assert response is None