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")