← Về thư mục
tests/test_doctor.py
- cfg · function · L26-L31 — def cfg(tmp_path)
- _by_name · function · L34-L35 — def _by_name(result)
- _no_ambient_key · function · L38-L51 — def _no_ambient_key(monkeypatch)
- test_every_probe_reports_without_a_running_daemon · function · L59-L75 — def test_every_probe_reports_without_a_running_daemon(cfg)
- test_a_probe_that_raises_becomes_a_finding_not_a_traceback · function · L78-L88 — def test_a_probe_that_raises_becomes_a_finding_not_a_traceback(cfg, monkeypatch)
- boom · function · L81-L82 — def boom(_cfg)
- test_a_missing_credential_fails_rather_than_warns · function · L96-L99 — def test_a_missing_credential_fails_rather_than_warns(cfg)
- test_a_configured_model_passes · function · L102-L105 — def test_a_configured_model_passes(cfg)
- test_low_disk_fails_because_a_run_would_die_partway · function · L108-L115 — def test_low_disk_fails_because_a_run_would_die_partway(cfg, monkeypatch)
- test_a_disabled_sandbox_warns_rather_than_fails · function · L118-L123 — def test_a_disabled_sandbox_warns_rather_than_fails(cfg, monkeypatch)
- test_enforce_without_a_backend_fails · function · L126-L135 — def test_enforce_without_a_backend_fails(cfg, monkeypatch)
- test_the_overall_status_is_the_worst_check · function · L138-L143 — def test_the_overall_status_is_the_worst_check(cfg, monkeypatch)
- test_no_credential_value_appears_anywhere_in_the_report · function · L151-L165 — def test_no_credential_value_appears_anywhere_in_the_report(cfg)
- test_the_rendered_report_shows_a_remedy_only_where_there_is_a_problem · function · L168-L175 — def test_the_rendered_report_shows_a_remedy_only_where_there_is_a_problem(cfg)
- test_the_exit_code_is_the_verdict · function · L183-L196 — def test_the_exit_code_is_the_verdict(monkeypatch, capsys)
- test_an_unusable_data_path_is_reported_rather_than_raised · function · L199-L223 — def test_an_unusable_data_path_is_reported_rather_than_raised( monkeypatch, capsys, tmp_path )
- test_a_database_from_a_newer_release_fails_the_data_check · function · L226-L257 — def test_a_database_from_a_newer_release_fails_the_data_check( monkeypatch, capsys, tmp_path )
- _older_database · function · L260-L275 — def _older_database(db_path, *, conflicting: bool = False) -> None
- _user_version · function · L278-L285 — def _user_version(db_path) -> int
- test_doctor_does_not_upgrade_a_database_from_an_older_release · function · L289-L331 — def test_doctor_does_not_upgrade_a_database_from_an_older_release( monkeypatch, capsys, tmp_path, conflicting )
- test_doctor_fails_the_data_check_after_an_upgrade_that_did_not_complete · function · L334-L370 — def test_doctor_fails_the_data_check_after_an_upgrade_that_did_not_complete( monkeypatch, capsys, tmp_path )
- test_a_pending_upgrade_leaves_the_saved_model_settings_unread_not_failed · function · L373-L388 — def test_a_pending_upgrade_leaves_the_saved_model_settings_unread_not_failed( cfg, monkeypatch )
- test_a_store_that_cannot_be_opened_is_not_reported_ok_by_connectors · function · L391-L406 — def test_a_store_that_cannot_be_opened_is_not_reported_ok_by_connectors( cfg, monkeypatch )
- refuse · function · L400-L401 — def refuse(_path)
- test_a_database_that_needs_recovery_is_not_opened_by_doctor · function · L409-L425 — def test_a_database_that_needs_recovery_is_not_opened_by_doctor(cfg, monkeypatch)
- test_a_database_whose_version_could_not_be_read_is_not_opened_by_doctor · function · L428-L460 — def test_a_database_whose_version_could_not_be_read_is_not_opened_by_doctor( cfg, monkeypatch )
- busy · function · L442-L443 — def busy(_a, *_k)
- test_the_upgrade_guide_says_doctor_does_not_migrate_and_fails_after_a_failed_one · function · L463-L478 — def test_the_upgrade_guide_says_doctor_does_not_migrate_and_fails_after_a_failed_one()
- test_an_unwritable_data_directory_is_reported_as_fail · function · L481-L491 — def test_an_unwritable_data_directory_is_reported_as_fail(cfg, tmp_path)
- test_a_usable_data_directory_passes · function · L494-L495 — def test_a_usable_data_directory_passes(cfg)
- test_the_json_form_is_machine_readable · function · L498-L520 — def test_the_json_form_is_machine_readable(monkeypatch, capsys)
- test_a_model_configured_only_in_the_ui_is_not_reported_as_missing · function · L528-L549 — def test_a_model_configured_only_in_the_ui_is_not_reported_as_missing(cfg, monkeypatch)
- test_a_local_endpoint_needs_no_credential · function · L552-L566 — def test_a_local_endpoint_needs_no_credential(cfg, monkeypatch)
- test_a_dot_local_endpoint_needs_no_credential · function · L569-L581 — def test_a_dot_local_endpoint_needs_no_credential(cfg, monkeypatch)
- test_a_local_endpoint_with_embedded_credentials_is_redacted · function · L584-L603 — def test_a_local_endpoint_with_embedded_credentials_is_redacted(cfg, monkeypatch)
- test_a_fresh_install_with_only_the_base_env_recommends_setup · function · L606-L625 — def test_a_fresh_install_with_only_the_base_env_recommends_setup(cfg, monkeypatch)
- test_stage1_doctor_runtime_uses_the_same_readiness_gate · function · L632-L686 — def test_stage1_doctor_runtime_uses_the_same_readiness_gate( cfg, monkeypatch, state, expected_status )
- test_flag_off_doctor_preserves_legacy_runtime_probe · function · L689-L710 — def test_flag_off_doctor_preserves_legacy_runtime_probe(cfg, monkeypatch)
- forbidden_readiness · function · L690-L691 — def forbidden_readiness(**_kwargs)
- test_a_remote_endpoint_without_a_key_still_fails · function · L713-L723 — def test_a_remote_endpoint_without_a_key_still_fails(cfg, monkeypatch)
- test_the_doctor_and_the_runtime_resolve_the_same_model · function · L726-L739 — def test_the_doctor_and_the_runtime_resolve_the_same_model(cfg)
- test_r_is_resolved_the_way_the_r_kernel_resolves_it · function · L742-L758 — def test_r_is_resolved_the_way_the_r_kernel_resolves_it(cfg, monkeypatch)
- test_no_r_anywhere_still_warns · function · L761-L770 — def test_no_r_anywhere_still_warns(cfg, monkeypatch)
- test_no_prebuilt_env_but_r_on_path_does_not_claim_r_is_dead · function · L773-L791 — def test_no_prebuilt_env_but_r_on_path_does_not_claim_r_is_dead(cfg, monkeypatch)
- test_no_prebuilt_env_and_no_r_still_says_r_will_not_run · function · L794-L806 — def test_no_prebuilt_env_and_no_r_still_says_r_will_not_run(cfg, monkeypatch)
- test_a_backend_whose_self_test_fails_is_not_reported_active · function · L809-L842 — def test_a_backend_whose_self_test_fails_is_not_reported_active(cfg, monkeypatch)
- failing_sandbox · function · L819-L833 — def failing_sandbox(_workspace, **_kw)
- test_enforce_with_a_failing_self_test_fails · function · L845-L856 — def test_enforce_with_a_failing_self_test_fails(cfg, monkeypatch)
- refusing · function · L850-L851 — def refusing(_workspace, **_kw)
- test_the_real_network_kill_switch_is_what_decides_connector_reach · function · L859-L867 — def test_the_real_network_kill_switch_is_what_decides_connector_reach(cfg, monkeypatch)
- test_the_default_egress_mode_is_not_reported_as_offline · function · L870-L878 — def test_the_default_egress_mode_is_not_reported_as_offline(cfg, monkeypatch)
- test_an_enforced_allowlist_is_reported_as_such · function · L881-L886 — def test_an_enforced_allowlist_is_reported_as_such(cfg, monkeypatch)