test: skip Bedrock live bridge tests without credentials

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-07-29 04:26:51 +00:00
parent f5362ac1f0
commit d7153c52ac

View file

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