We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11ec7d0 commit 98504bfCopy full SHA for 98504bf
1 file changed
test/backends/test_bedrock.py
@@ -1,5 +1,3 @@
1
-import os
2
-
3
import openai
4
import pytest
5
@@ -9,15 +7,12 @@
9
7
from mellea.backends.bedrock import create_bedrock_mantle_backend
10
8
from mellea.backends.openai import OpenAIBackend
11
from mellea.stdlib.context import ChatContext
+from test.predicates import require_api_key
12
13
-# Skip entire module in CI since the single test is qualitative
14
pytestmark = [
15
pytest.mark.e2e,
16
pytest.mark.bedrock,
17
- pytest.mark.skipif(
18
- "AWS_BEARER_TOKEN_BEDROCK" not in os.environ.keys(),
19
- reason="Skipping Bedrock backend tests if $AWS_BEARER_TOKEN_BEDROCK is not set.",
20
- ),
+ require_api_key("AWS_BEARER_TOKEN_BEDROCK"),
21
]
22
23
0 commit comments