Skip to content

Commit

Permalink
test: adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
helmut-hoffer-von-ankershoffen committed Jan 4, 2025
1 parent fe6083f commit f55f737
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/search/starbridge_search_cli_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
from unittest.mock import patch

import httpx
import pytest
import requests
from brave_search_python_client import MOCK_API_KEY, WebSearchApiResponse
Expand Down Expand Up @@ -30,7 +31,7 @@ def test_search_cli_health(runner) -> None:
@patch("httpx.AsyncClient.head")
def test_search_cli_health_not_connected(mock_head, runner) -> None:
"""Check web health down when not connected."""
mock_head.side_effect = requests.exceptions.Timeout()
mock_head.side_effect = httpx.ReadTimeout("Timeout")

result = runner.invoke(cli, ["search", "health"])
assert '"DOWN"' in result.output
Expand Down

0 comments on commit f55f737

Please sign in to comment.