diff --git a/tests/test_chat_tools_shape_http_honesty.py b/tests/test_chat_tools_shape_http_honesty.py index fa4952ad4..93a496970 100644 --- a/tests/test_chat_tools_shape_http_honesty.py +++ b/tests/test_chat_tools_shape_http_honesty.py @@ -235,7 +235,7 @@ def test_http_chat_accepts_tools_omitted() -> None: if __name__ == "__main__": test_http_chat_accepts_valid_function_tools() - test_http_chat_rejects_empty_tools_array() + test_http_chat_accepts_empty_tools_array_as_noop() test_http_chat_rejects_tool_type_not_function() test_http_chat_rejects_tool_missing_function_name() test_http_chat_rejects_tool_function_name_bad_charset() diff --git a/tests/test_functions_null_max_tool_calls_null_http_honesty.py b/tests/test_functions_null_max_tool_calls_null_http_honesty.py index a2a26bf71..b216f5341 100644 --- a/tests/test_functions_null_max_tool_calls_null_http_honesty.py +++ b/tests/test_functions_null_max_tool_calls_null_http_honesty.py @@ -101,7 +101,6 @@ def test_http_responses_accepts_null_max_tool_calls_and_functions() -> None: "model": "mock-planner", "input": "max tool null", "max_tool_calls": None, - "functions": None, "function_call": None, "functions": [], }, diff --git a/tests/test_responses_tools_shape_http_honesty.py b/tests/test_responses_tools_shape_http_honesty.py index 0b50d86db..9ea4d7f4c 100644 --- a/tests/test_responses_tools_shape_http_honesty.py +++ b/tests/test_responses_tools_shape_http_honesty.py @@ -173,7 +173,7 @@ def test_http_responses_rejects_named_tool_choice_not_in_tools() -> None: if __name__ == "__main__": test_http_responses_accepts_valid_tools_and_auto_choice() - test_http_responses_rejects_empty_tools_array() + test_http_responses_accepts_empty_tools_array_as_noop() test_http_responses_rejects_tool_without_function_type() test_http_responses_accepts_tool_choice_auto_without_tools_as_omit() test_http_responses_rejects_legacy_functions_surface() diff --git a/tests/test_security_hardening.py b/tests/test_security_hardening.py index 6aa57bf5c..18471581c 100644 --- a/tests/test_security_hardening.py +++ b/tests/test_security_hardening.py @@ -1,7 +1,6 @@ from __future__ import annotations import json -import os import socket import threading import urllib.error