test(model): isolate custom-provider grouping tests from live discovery

This commit is contained in:
Alex López 2026-07-10 22:25:28 -04:00 committed by Teknium
parent 76fca0b4b3
commit 7ed18dae90

View file

@ -664,6 +664,7 @@ def test_list_authenticated_providers_groups_same_endpoint(monkeypatch):
"api_key": "ollama", "model": "qwen3-coder"},
],
max_models=50,
probe_custom_providers=False,
)
custom_groups = [p for p in providers if p.get("is_user_defined")]
@ -748,6 +749,7 @@ def test_list_authenticated_providers_distinct_endpoints_stay_separate(monkeypat
"api_key": "ollama", "model": "qwen3-coder"},
],
max_models=50,
probe_custom_providers=False,
)
custom_groups = [p for p in providers if p.get("is_user_defined")]
@ -841,6 +843,7 @@ def test_list_authenticated_providers_total_models_reflects_grouped_count(monkey
user_providers={},
custom_providers=entries,
max_models=4,
probe_custom_providers=False,
)
groups = [p for p in providers if p.get("is_user_defined")]