Files
hermes-agent/tests/tools/test_browser_camofox_timeout.py
teknium1 524c38a98a test: purge low-value tests, lane py16 (624 removed)
Change-detectors, tautologies, source-reading tests, redundant duplicates,
mock-echo tests and dead/unrunnable tests. Per-test rationale in the lane
ledger (category + reason for every removal).
2026-09-23 03:15:26 -07:00

21 lines
668 B
Python

"""Tests for browser_camofox._get_command_timeout — config-driven timeout."""
from unittest.mock import patch
class TestCamofoxCommandTimeout:
"""Verify that the Camofox HTTP backend reads browser.command_timeout."""
def test_config_read_error_falls_back(self):
"""If config read raises, fall back to 30s."""
from tools.browser_camofox import _get_command_timeout
import tools.browser_camofox as mod
mod._cmd_timeout_resolved = False
mod._cached_cmd_timeout = None
with patch("tools.browser_camofox.read_raw_config", side_effect=Exception("no config")):
assert _get_command_timeout() == 30