diff --git a/tests/llm_translation/test_bedrock_invoke_tests.py b/tests/llm_translation/test_bedrock_invoke_tests.py index e56188b1f6..2795d894f2 100644 --- a/tests/llm_translation/test_bedrock_invoke_tests.py +++ b/tests/llm_translation/test_bedrock_invoke_tests.py @@ -32,6 +32,13 @@ class TestBedrockInvokeNovaJson(BaseLLMChatTest): def test_tool_call_no_arguments(self, tool_call_no_arguments): """Test that tool calls with no arguments is translated correctly. Relevant issue: https://github.com/BerriAI/litellm/issues/6833""" pass + + @pytest.fixture(autouse=True) + def skip_non_json_tests(self, request): + if not "json" in request.function.__name__.lower(): + pytest.skip( + f"Skipping non-JSON test: {request.function.__name__} does not contain 'json'" + ) def test_nova_invoke_remove_empty_system_messages():