Skip to content

Commit 5c96a6b

Browse files
Fix stale tests.
1 parent 3e4b72e commit 5c96a6b

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

tests/experiments/test_launch_exp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_4o_mini_on_miniwob_tiny_test():
122122

123123

124124
if __name__ == "__main__":
125-
test_timeout_ray()
125+
# test_timeout_ray()
126126
# test_4o_mini_on_miniwob_tiny_test()
127127
# test_launch_system_ray()
128128
# test_launch_system_sequntial()

tests/llm/test_response_api.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ def create_mock_openai_chat_completion(
3636
)
3737
tool_call_mock.id = tc["id"]
3838
tool_call_mock.type = tc["type"]
39-
tool_call_mock.function = MagicMock(
40-
spec=openai.types.chat.chat_completion_message_tool_call.Function
41-
)
39+
tool_call_mock.function = MagicMock()
4240
tool_call_mock.function.name = tc["function"]["name"]
4341
tool_call_mock.function.arguments = tc["function"]["arguments"]
4442
message.tool_calls.append(tool_call_mock)
@@ -800,4 +798,5 @@ def test_tool_call_to_python_code():
800798

801799

802800
if __name__ == "__main__":
803-
test_tool_call_to_python_code()
801+
# test_tool_call_to_python_code()
802+
# test_openai_chat_completion_model_parse_and_cost()

tests/llm/test_tracking.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ def test_get_action_decorator():
2727
OPENROUTER_API_KEY_AVAILABLE = os.environ.get("OPENROUTER_API_KEY") is not None
2828

2929
OPENROUTER_MODELS = (
30-
"openai/o1-mini-2024-09-12",
31-
"openai/o1-preview-2024-09-12",
32-
"openai/gpt-4o-2024-08-06",
33-
"openai/gpt-4o-2024-05-13",
34-
"anthropic/claude-3.5-sonnet:beta",
3530
"anthropic/claude-3.5-sonnet",
3631
"meta-llama/llama-3.1-405b-instruct",
3732
"meta-llama/llama-3.1-70b-instruct",

tests/test_ui_assistant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
def test_make_exp_args():
66
"""Basic unit test to detect refactoring errors."""
7-
exp_args = make_exp_args(AGENT_4o)
7+
exp_args = make_exp_args(AGENT_4o, "https://www.google.com")
88

99
assert exp_args.agent_args.flags.action.demo_mode == "default"

0 commit comments

Comments
 (0)