style: run the formatter over the issue 14 changes
ruff format only; no semantic change.
This commit is contained in:
@@ -177,9 +177,7 @@ class TestResilienceKeys:
|
||||
是"快速失败 → 长时间挂起"这个最危险的方向,不能强加给存量下游。
|
||||
"""
|
||||
assert GatewaySettings.from_env("LLM", env=_env()).circuit_open == "fail_fast"
|
||||
waiting = GatewaySettings.from_env(
|
||||
"LLM", env=_env(**{"LLM__CIRCUIT_OPEN": "wait"})
|
||||
)
|
||||
waiting = GatewaySettings.from_env("LLM", env=_env(**{"LLM__CIRCUIT_OPEN": "wait"}))
|
||||
assert waiting.circuit_open == "wait"
|
||||
with pytest.raises(ValueError, match="CIRCUIT_OPEN"):
|
||||
GatewaySettings.from_env("LLM", env=_env(**{"LLM__CIRCUIT_OPEN": "block"}))
|
||||
|
||||
Reference in New Issue
Block a user