Private
Public Access
0
0
Files
manual_slop/tests/test_providers_source_of_truth.py
T
ed edebeac619 test: remove gemini_cli references in 6 + delete test_ai_client_list_models.py
Drop stale gemini_cli expectations: PROVIDERS expectations in
test_providers_source_of_truth + test_provider_curation, the
test_list_models_gemini_cli function (deleted the whole file since it
was the only test), the test_discussion_compression_gemini_cli function,
the test_gcli_path_updates_adapter function (its setter was removed),
the ui_gemini_cli_path references in test_mma_tier_usage_reset_fix and
test_rag_integration. These are the t1.9 minor edits.
2026-07-05 19:56:57 -04:00

24 lines
886 B
Python

"""Verify PROVIDERS is defined in src.ai_client (the source of truth)
and re-exported from src.models (backward compat shim).
Per the follow-up track's Naming Convention (HARD RULE), PROVIDERS
lives in src/ai_client.py. src/models.py keeps a re-export
shim so existing import sites don't break.
"""
from __future__ import annotations
import src.models as models
import src.ai_client as ai_client
EXPECTED_PROVIDERS = ["gemini", "anthropic", "deepseek", "minimax", "qwen", "grok", "llama"]
def test_providers_defined_in_src_ai_client() -> None:
assert hasattr(ai_client, "PROVIDERS")
assert ai_client.PROVIDERS == EXPECTED_PROVIDERS
def test_providers_reexported_from_src_models() -> None:
assert hasattr(models, "PROVIDERS")
assert models.PROVIDERS == EXPECTED_PROVIDERS
def test_providers_same_object_in_both_modules() -> None:
assert models.PROVIDERS is ai_client.PROVIDERS