← Về thư mục
tests/test_model_binding_recovery.py
- _Hub · class · L43-L48 — class _Hub
- emitter · method · L44-L45 — def emitter(self, root_frame_id)
- broadcast · method · L47-L48 — def broadcast(self, root_frame_id, event)
- api · function · L52-L83 — def api(tmp_path)
- call · function · L62-L81 — def call(method, path, body=None)
- _pinned_session · function · L86-L107 — def _pinned_session(runner, call)
- test_deleting_a_profile_does_not_brick_its_sessions · function · L110-L141 — def test_deleting_a_profile_does_not_brick_its_sessions(api)
- test_the_deleted_profile_keeps_the_sessions_record_until_it_is_rebound · function · L144-L159 — def test_the_deleted_profile_keeps_the_sessions_record_until_it_is_rebound(api)
- test_only_the_sessions_of_the_deleted_profile_are_released · function · L162-L192 — def test_only_the_sessions_of_the_deleted_profile_are_released(api)
- test_a_dangling_revision_still_refuses · function · L200-L209 — def test_a_dangling_revision_still_refuses(api)
- test_the_rebind_route_answers_it · function · L212-L223 — def test_the_rebind_route_answers_it(api)
- test_rebinding_is_not_something_send_does_on_its_own · function · L226-L234 — def test_rebinding_is_not_something_send_does_on_its_own(api)
- test_the_route_refuses_on_a_read_only_session · function · L237-L257 — def test_the_route_refuses_on_a_read_only_session(api, monkeypatch)
- test_the_client_can_act_on_the_refusal · function · L265-L272 — def test_the_client_can_act_on_the_refusal()
- test_the_client_asks_before_rebinding · function · L275-L284 — def test_the_client_asks_before_rebinding()
- test_both_languages_have_the_rebind_strings · function · L287-L292 — def test_both_languages_have_the_rebind_strings()
- test_a_pinned_session_dispatches_to_what_it_named · function · L300-L327 — def test_a_pinned_session_dispatches_to_what_it_named(api)
- test_an_unpinned_session_still_follows_the_active_profile · function · L330-L353 — def test_an_unpinned_session_still_follows_the_active_profile(api)
- test_an_unresolvable_pin_refuses_rather_than_silently_using_another_profile · function · L356-L374 — def test_an_unresolvable_pin_refuses_rather_than_silently_using_another_profile(api)
- test_an_unpinned_session_still_falls_back_to_the_active_profile · function · L377-L389 — def test_an_unpinned_session_still_falls_back_to_the_active_profile(api)
- test_the_composer_choice_does_not_overrule_the_pinned_model · function · L392-L406 — def test_the_composer_choice_does_not_overrule_the_pinned_model(api)
- test_a_legacy_session_matching_no_profile_stays_unbound · function · L412-L457 — def test_a_legacy_session_matching_no_profile_stays_unbound(api)
- test_a_legacy_session_with_one_match_is_still_backfilled · function · L460-L488 — def test_a_legacy_session_with_one_match_is_still_backfilled(api)
- test_the_client_can_act_on_the_ambiguous_refusal_too · function · L491-L510 — def test_the_client_can_act_on_the_ambiguous_refusal_too()
- _session · function · L533-L537 — def _session(runner)
- _dispatch_spy · function · L540-L556 — def _dispatch_spy(runner, monkeypatch)
- _loop · function · L549-L552 — def _loop(st, emit, visible)
- _send · function · L559-L568 — def _send(runner, call, frame, text)
- test_a_profile_keyed_by_the_environment_is_ready_bound_and_dispatched · function · L572-L601 — def test_a_profile_keyed_by_the_environment_is_ready_bound_and_dispatched( api, monkeypatch )
- test_a_keyless_local_profile_dispatches_without_borrowing_any_key · function · L605-L637 — def test_a_keyless_local_profile_dispatches_without_borrowing_any_key(api, monkeypatch)
- test_another_providers_key_is_never_inherited · function · L641-L665 — def test_another_providers_key_is_never_inherited(api, monkeypatch)
- test_a_revoked_brokered_key_still_refuses_even_with_an_environment_key · function · L668-L701 — def test_a_revoked_brokered_key_still_refuses_even_with_an_environment_key( api, monkeypatch )
- test_a_tombstoned_pin_refuses_even_when_the_environment_has_a_key · function · L704-L726 — def test_a_tombstoned_pin_refuses_even_when_the_environment_has_a_key(api, monkeypatch)
- test_a_turn_refused_after_admission_keeps_the_users_message · function · L730-L773 — def test_a_turn_refused_after_admission_keeps_the_users_message(api, monkeypatch)
- _admit_then_revoke · function · L756-L762 — def _admit_then_revoke(frame_id)
- test_the_rebind_route_does_not_re_pin_a_profile_nothing_can_dispatch · function · L776-L796 — def test_the_rebind_route_does_not_re_pin_a_profile_nothing_can_dispatch(api)
- _profile · function · L812-L818 — def _profile(call, name, provider, model, api_key=None)
- _workbench_session · function · L821-L832 — def _workbench_session(runner, call, model)
- _refused_send · function · L835-L838 — def _refused_send(call, frame)
- test_a_workbench_session_whose_profile_was_deleted_rebinds_to_the_active_one · function · L842-L864 — def test_a_workbench_session_whose_profile_was_deleted_rebinds_to_the_active_one( api, monkeypatch )
- test_a_replacement_naming_the_same_model_is_not_ambiguous_with_its_tombstone · function · L867-L884 — def test_a_replacement_naming_the_same_model_is_not_ambiguous_with_its_tombstone( api, )
- test_a_refused_rebind_keeps_the_sessions_record · function · L887-L903 — def test_a_refused_rebind_keeps_the_sessions_record(api)
- test_the_rebind_route_answers_an_ambiguous_legacy_session · function · L906-L924 — def test_the_rebind_route_answers_an_ambiguous_legacy_session(api)
- test_a_legacy_session_matching_only_a_tombstone_stays_unbound · function · L927-L942 — def test_a_legacy_session_matching_only_a_tombstone_stays_unbound(api)
- test_a_legacy_backfill_is_not_ambiguous_between_a_tombstone_and_a_live_profile · function · L945-L964 — def test_a_legacy_backfill_is_not_ambiguous_between_a_tombstone_and_a_live_profile( api, )
- test_a_legacy_backfill_refuses_a_match_nothing_can_dispatch · function · L967-L990 — def test_a_legacy_backfill_refuses_a_match_nothing_can_dispatch(api)
- _send_this · function · L1005-L1014 — def _send_this(runner, call, frame, text)
- _keyed_workbench_session · function · L1017-L1034 — def _keyed_workbench_session(runner, call, monkeypatch, *, provider, base_url, key)
- test_a_key_entered_for_a_new_endpoint_never_reaches_a_pinned_old_one · function · L1038-L1083 — def test_a_key_entered_for_a_new_endpoint_never_reaches_a_pinned_old_one( api, monkeypatch )
- test_a_key_entered_for_another_protocol_never_reaches_a_pinned_session · function · L1086-L1109 — def test_a_key_entered_for_another_protocol_never_reaches_a_pinned_session(api)
- test_an_environment_key_is_not_sent_to_an_endpoint_the_profile_left · function · L1113-L1147 — def test_an_environment_key_is_not_sent_to_an_endpoint_the_profile_left( api, monkeypatch )
- test_a_rotated_key_on_the_same_endpoint_still_reaches_the_pinned_session · function · L1151-L1174 — def test_a_rotated_key_on_the_same_endpoint_still_reaches_the_pinned_session( api, monkeypatch )
- test_an_empty_base_url_is_the_endpoint_the_environment_names · function · L1184-L1224 — def test_an_empty_base_url_is_the_endpoint_the_environment_names( api, monkeypatch, variable )
- test_a_rotation_under_an_environment_endpoint_still_reaches_the_pinned_session · function · L1228-L1248 — def test_a_rotation_under_an_environment_endpoint_still_reaches_the_pinned_session( api, monkeypatch )
- test_a_rebind_with_no_active_profile_is_not_a_success_the_next_send_refuses · function · L1256-L1288 — def test_a_rebind_with_no_active_profile_is_not_a_success_the_next_send_refuses(api)
- test_a_rebind_with_no_active_profile_reports_the_binding_the_send_will_use · function · L1291-L1320 — def test_a_rebind_with_no_active_profile_reports_the_binding_the_send_will_use(api)