From 91badcc054055b89145494a1d53709c8801800aa Mon Sep 17 00:00:00 2001 From: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Date: Tue, 11 Feb 2025 10:42:27 +0100 Subject: [PATCH] Fix 429 Client Error: Too Many Requests in CI test (#599) --- tests/test_models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_models.py b/tests/test_models.py index b73e283..02105af 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -49,6 +49,7 @@ class ModelTests(unittest.TestCase): data = json.loads(message.model_dump_json()) assert data["content"] == [{"type": "text", "text": "Hello!"}] + @pytest.mark.skipif(not os.getenv("RUN_ALL"), reason="RUN_ALL environment variable not set") def test_get_hfapi_message_no_tool(self): model = HfApiModel(max_tokens=10) messages = [{"role": "user", "content": [{"type": "text", "text": "Hello!"}]}]