mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
fix: post-finale completeness sweep — routing surface, provider config, budgets, compose env, interactive exemption (#661)
This commit is contained in:
@@ -15,10 +15,19 @@ from pathlib import Path
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from roboco.config import settings
|
||||
from roboco.llm.providers import GeminiCliProvider, ProviderError, SpawnResult
|
||||
from roboco.llm.providers import gemini as gemini_module
|
||||
from roboco.models.runtime import OrchestratorAgentConfig
|
||||
|
||||
|
||||
def test_gemini_cli_model_is_a_real_settings_field() -> None:
|
||||
# Parity with codex_cli_model (roboco.config.Settings.codex_cli_model) —
|
||||
# gemini.py reads settings.gemini_cli_model, not a raw os.environ.get.
|
||||
assert settings.gemini_cli_model == gemini_module._GEMINI_CLI_MODEL
|
||||
assert settings.gemini_cli_model == "gemini-2.5-pro"
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _isolate_gemini_auth(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path:
|
||||
"""Point GEMINI_AUTH_HOST_PATH at a fresh tmp dir so tests never mount the
|
||||
|
||||
Reference in New Issue
Block a user