From d7153c52ac35eb5b69eb915929e25e16b46a252e Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 04:26:51 +0000 Subject: [PATCH] test: skip Bedrock live bridge tests without credentials Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com> --- tests/test_litellm/anthropic_interface/conftest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_litellm/anthropic_interface/conftest.py diff --git a/tests/test_litellm/anthropic_interface/conftest.py b/tests/test_litellm/anthropic_interface/conftest.py new file mode 100644 index 00000000000..ca2fad4146a --- /dev/null +++ b/tests/test_litellm/anthropic_interface/conftest.py @@ -0,0 +1,12 @@ +import os + +import pytest + + +@pytest.fixture(autouse=True) +def skip_live_bedrock_tests_without_credentials(request): + if ( + request.node.path.name == "test_bedrock_rust_bridge_e2e.py" + and not os.getenv("AWS_BEARER_TOKEN_BEDROCK") + ): + pytest.skip("requires AWS_BEARER_TOKEN_BEDROCK")