From 940810f5267fb93f8f8d759ce19e094d0eaa9ed7 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 16 Apr 2025 19:29:43 -0700 Subject: [PATCH] add back pytest fixture --- tests/llm_translation/test_bedrock_invoke_tests.py | 7 +++++++ 1 file changed, 7 insertions(+) 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():