mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
style: Format test_exceptions.py with linter
This commit is contained in:
parent
61705ce7fc
commit
fd180ebff5
1 changed files with 4 additions and 4 deletions
|
@ -72,11 +72,11 @@ def test_openrouter_error():
|
||||||
|
|
||||||
# Create an APIConnectionError with OpenrouterException message
|
# Create an APIConnectionError with OpenrouterException message
|
||||||
openrouter_error = APIConnectionError(
|
openrouter_error = APIConnectionError(
|
||||||
message="APIConnectionError: OpenrouterException - 'choices'",
|
message="APIConnectionError: OpenrouterException - 'choices'",
|
||||||
model="openrouter/model",
|
model="openrouter/model",
|
||||||
llm_provider="openrouter"
|
llm_provider="openrouter",
|
||||||
)
|
)
|
||||||
|
|
||||||
ex_info = ex.get_ex_info(openrouter_error)
|
ex_info = ex.get_ex_info(openrouter_error)
|
||||||
assert ex_info.retry is False
|
assert ex_info.retry is False
|
||||||
assert "OpenRouter API provider is down" in ex_info.description
|
assert "OpenRouter API provider is down" in ex_info.description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue