← Về thư mục
tests/test_llm_providers.py
- _Capture · class · L22-L51 — class _Capture
- init · method · L25-L28 — def init(self)
- call · method · L30-L51 — def call(self, url, payload, headers, timeout)
- _hermetic_env · function · L55-L68 — def _hermetic_env(monkeypatch)
- cap · function · L72-L75 — def cap(monkeypatch)
- _cfg · function · L78-L80 — def _cfg(provider, **kw)
- test_registry_wire_and_vision · function · L96-L99 — def test_registry_wire_and_vision(provider, wire, vision)
- test_unknown_provider_raises · function · L102-L104 — def test_unknown_provider_raises()
- test_config_resolves_provider_defaults · function · L107-L118 — def test_config_resolves_provider_defaults(monkeypatch): # No generic OPENAI4S_LLM_* overrides in play for this construction.
- test_per_provider_env_override · function · L121-L126 — def test_per_provider_env_override(monkeypatch)
- test_missing_api_key_raises · function · L132-L142 — def test_missing_api_key_raises(monkeypatch)
- test_loopback_openai_endpoint_can_run_without_fake_api_key · function · L145-L156 — def test_loopback_openai_endpoint_can_run_without_fake_api_key(cap)
- test_loopback_endpoint_does_not_inherit_unverified_vendor_tool_support · function · L159-L182 — def test_loopback_endpoint_does_not_inherit_unverified_vendor_tool_support(cap)
- test_openai_wire_url_and_auth · function · L188-L193 — def test_openai_wire_url_and_auth(cap)
- test_anthropic_wire_url_and_auth · function · L196-L210 — def test_anthropic_wire_url_and_auth(cap)
- test_gemini_wire_url_and_auth · function · L213-L228 — def test_gemini_wire_url_and_auth(cap)
- test_config_base_url_override · function · L231-L234 — def test_config_base_url_override(cap)
- test_openai_image_translation · function · L251-L257 — def test_openai_image_translation(cap)
- test_anthropic_image_translation · function · L260-L267 — def test_anthropic_image_translation(cap)
- test_gemini_image_translation · function · L270-L276 — def test_gemini_image_translation(cap)
- test_vision_provider_accepts_images · function · L283-L286 — def test_vision_provider_accepts_images(cap, provider): # Should not raise; the fake transport returns a canned body.
- test_normalized_return_shape · function · L293-L296 — def test_normalized_return_shape(cap, provider)