This commit is contained in:
@@ -48,6 +48,7 @@ def test_flag_off_returns_failure_without_http(monkeypatch):
|
||||
)
|
||||
|
||||
assert result.success is False
|
||||
assert result.status == 'error'
|
||||
assert 'MCP_ROUTER_ENABLED=false' in (result.error or '')
|
||||
mock_post.assert_not_called()
|
||||
|
||||
@@ -68,6 +69,7 @@ def test_unauthorized_caller_tool_combo_rejected(monkeypatch):
|
||||
)
|
||||
|
||||
assert result.success is False
|
||||
assert result.status == 'error'
|
||||
assert 'tool not in registry' in (result.error or '')
|
||||
mock_post.assert_not_called()
|
||||
|
||||
@@ -244,4 +246,5 @@ def test_unknown_server_rejected(monkeypatch):
|
||||
|
||||
# 注意:白名單檢查在前,會先回 'tool not in registry'(因為 omnisearch_wrong 不在 registry)
|
||||
assert result.success is False
|
||||
assert result.status == 'error'
|
||||
mock_post.assert_not_called()
|
||||
|
||||
Reference in New Issue
Block a user