Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Update test_single_step.py to specify message type in _add_message_with_type calls, enhancing message categorization in tests.
Magnus Müller87ef1325e80d
diff --git a/browser_use/llm/tests/test_single_step.py b/browser_use/llm/tests/test_single_step.pyindex b990804b6..10c0c0a94 100644--- a/browser_use/llm/tests/test_single_step.py+++ b/browser_use/llm/tests/test_single_step.py@@ -111,7 +111,7 @@ async def test_single_step_parametrized(llm_class, model_name):# Create mock state messagemock_message = create_mock_state_message(temp_dir)- agent.message_manager._add_message_with_type(mock_message)+ agent.message_manager._add_message_with_type(mock_message, 'state')messages = agent.message_manager.get_messages()@@ -152,7 +152,7 @@ async def test_single_step():print(mock_message.content)print('\n' + '=' * 50 + '\n')- agent.message_manager._add_message_with_type(mock_message)+ agent.message_manager._add_message_with_type(mock_message, 'state')messages = agent.message_manager.get_messages()