Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

added test single step calls

Sandeepaf3dd97e4af6
diff --git a/browser_use/llm/tests/test_single_step.py b/browser_use/llm/tests/test_single_step.py
index 1468bf46e..c92db3a1f 100644
--- a/browser_use/llm/tests/test_single_step.py
+++ b/browser_use/llm/tests/test_single_step.py
@@ -21,6 +21,16 @@ logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
+def _check_oci_credentials() -> bool:
+ """Check if OCI credentials are available."""
+ try:
+ import oci
+ oci.config.from_file('~/.oci/config', 'DEFAULT')
+ return True
+ except Exception:
+ return False
+
+
def create_mock_state_message(temp_dir: str):
"""Create a mock state message with a single clickable element."""
@@ -128,7 +138,10 @@ def create_mock_state_message(temp_dir: str):
'auth_type': 'API_KEY',
'auth_profile': 'DEFAULT'
},
- marks=pytest.mark.skipif(True, reason="OCI Raw requires valid credentials")
+ marks=pytest.mark.skipif(
+ not _check_oci_credentials(),
+ reason="OCI credentials not available"
+ )
),
],
)