mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
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:
parent
f5362ac1f0
commit
d7153c52ac
1 changed files with 12 additions and 0 deletions
12
tests/test_litellm/anthropic_interface/conftest.py
Normal file
12
tests/test_litellm/anthropic_interface/conftest.py
Normal 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")
|
||||
Loading…
Add table
Reference in a new issue