← Về thư mục
tests/test_llm_transport_wiring.py
- _cfg · function · L30-L37 — def _cfg(provider="chatgpt")
- _http_error · function · L40-L47 — def _http_error(code, headers=None, body=b"{}")
- _Resp · class · L50-L61 — class _Resp
- init · method · L51-L52 — def init(self, body)
- read · method · L54-L55 — def read(self)
- enter · method · L57-L58 — def enter(self)
- exit · method · L60-L61 — def exit(self, *_args)
- test_a_transport_error_names_the_provider_it_came_from · function · L64-L74 — def test_a_transport_error_names_the_provider_it_came_from(monkeypatch)
- test_stop_interrupts_a_retry_backoff · function · L77-L93 — def test_stop_interrupts_a_retry_backoff(monkeypatch)
- urlopen · function · L81-L83 — def urlopen(a, *k)
- test_without_cancellation_the_same_call_retries · function · L96-L109 — def test_without_cancellation_the_same_call_retries(monkeypatch)
- urlopen · function · L101-L103 — def urlopen(a, *k)
- test_stream_transport_failure_has_one_bounded_budget_not_sse_plus_json · function · L113-L135 — def test_stream_transport_failure_has_one_bounded_budget_not_sse_plus_json( monkeypatch, status, attempt_count )
- urlopen · function · L120-L123 — def urlopen(a, *k)
- test_ark_burst_inside_http_200_sse_retries_in_the_same_bounded_budget · function · L138-L173 — def test_ark_burst_inside_http_200_sse_retries_in_the_same_bounded_budget( monkeypatch, )
- urlopen · function · L145-L161 — def urlopen(_args, *_kwargs)
- test_unpublished_stream_state_is_cleared_before_a_burst_retry · function · L176-L218 — def test_unpublished_stream_state_is_cleared_before_a_burst_retry(monkeypatch)
- urlopen · function · L181-L203 — def urlopen(_args, *_kwargs)
- test_role_only_stream_event_does_not_veto_a_safe_burst_retry · function · L221-L255 — def test_role_only_stream_event_does_not_veto_a_safe_burst_retry(monkeypatch)
- urlopen · function · L224-L243 — def urlopen(_args, *_kwargs)
- test_visible_content_before_burst_is_never_replayed · function · L258-L287 — def test_visible_content_before_burst_is_never_replayed(monkeypatch)
- urlopen · function · L262-L273 — def urlopen(_args, *_kwargs)
- test_real_http_stream_compatibility_refusal_falls_back_to_json · function · L290-L311 — def test_real_http_stream_compatibility_refusal_falls_back_to_json(monkeypatch)
- urlopen · function · L293-L300 — def urlopen(_args, *_kwargs)
- test_http_400_with_auth_code_does_not_hide_behind_stream_fallback · function · L314-L331 — def test_http_400_with_auth_code_does_not_hide_behind_stream_fallback(monkeypatch)
- urlopen · function · L317-L319 — def urlopen(_args, *_kwargs)
- test_an_injected_four_argument_transport_still_works · function · L334-L350 — def test_an_injected_four_argument_transport_still_works(monkeypatch)
- legacy_post_json · function · L340-L345 — def legacy_post_json(url, payload, headers, timeout)
- test_a_transport_accepting_the_context_receives_it · function · L353-L367 — def test_a_transport_accepting_the_context_receives_it(monkeypatch)
- modern_post_json · function · L356-L361 — def modern_post_json(url, payload, headers, timeout, **kw)