← Về thư mục
tests/test_diagnostics.py
- cfg · function · L38-L41 — def cfg(tmp_path)
- _bundle_bytes · function · L44-L46 — def _bundle_bytes(path)
- test_a_token_inside_a_sentence_is_redacted · function · L54-L59 — def test_a_token_inside_a_sentence_is_redacted()
- test_punctuation_around_a_token_does_not_hide_it · function · L71-L73 — def test_punctuation_around_a_token_does_not_hide_it(line)
- test_ordinary_prose_survives · function · L76-L80 — def test_ordinary_prose_survives()
- test_the_same_token_redacts_to_the_same_fingerprint · function · L83-L89 — def test_the_same_token_redacts_to_the_same_fingerprint()
- test_a_secret_in_a_structured_log_line_never_reaches_the_bundle · function · L97-L103 — def test_a_secret_in_a_structured_log_line_never_reaches_the_bundle(cfg, tmp_path)
- test_a_secret_in_a_plain_log_line_never_reaches_the_bundle · function · L106-L111 — def test_a_secret_in_a_plain_log_line_never_reaches_the_bundle(cfg, tmp_path)
- test_the_database_is_never_collected · function · L114-L122 — def test_the_database_is_never_collected(cfg, tmp_path)
- test_the_manifest_says_what_was_left_out · function · L125-L134 — def test_the_manifest_says_what_was_left_out(cfg, tmp_path)
- test_the_report_records_every_boundary_posture · function · L137-L140 — def test_the_report_records_every_boundary_posture(cfg)
- test_an_unresolvable_secret_broker_does_not_overwrite_the_schema_probe · function · L143-L173 — def test_an_unresolvable_secret_broker_does_not_overwrite_the_schema_probe( cfg, monkeypatch )
- _unresolvable · function · L156-L157 — def _unresolvable(self)
- test_the_environment_report_does_not_leak_a_home_directory · function · L176-L181 — def test_the_environment_report_does_not_leak_a_home_directory()
- test_the_bundle_is_owner_only · function · L184-L193 — def test_the_bundle_is_owner_only(cfg, tmp_path)
- test_a_bundle_works_with_no_logs_at_all · function · L196-L199 — def test_a_bundle_works_with_no_logs_at_all(cfg, tmp_path)
- test_a_small_log_is_not_rotated · function · L207-L211 — def test_a_small_log_is_not_rotated(tmp_path)
- test_an_oversized_log_rotates · function · L214-L219 — def test_an_oversized_log_rotates(tmp_path)
- test_generations_are_bounded · function · L222-L230 — def test_generations_are_bounded(tmp_path)
- test_rotating_a_missing_log_is_not_an_error · function · L233-L234 — def test_rotating_a_missing_log_is_not_an_error(tmp_path)
- test_the_bundle_collects_the_log_the_daemon_actually_writes · function · L250-L282 — def test_the_bundle_collects_the_log_the_daemon_actually_writes(cfg, tmp_path)
- test_a_credential_in_the_daemon_log_never_reaches_the_bundle · function · L285-L292 — def test_a_credential_in_the_daemon_log_never_reaches_the_bundle(cfg, tmp_path)
- test_another_accounts_home_directory_is_collapsed_in_the_bundle · function · L295-L320 — def test_another_accounts_home_directory_is_collapsed_in_the_bundle(cfg, tmp_path)
- test_an_operator_host_is_not_shipped_in_the_bundle · function · L323-L355 — def test_an_operator_host_is_not_shipped_in_the_bundle(cfg, tmp_path)
- test_a_real_diagnostic_record_is_scrubbed_in_the_bundle · function · L358-L413 — def test_a_real_diagnostic_record_is_scrubbed_in_the_bundle(cfg, tmp_path)
- _CanaryFailure · class · L374-L379 — class _CanaryFailure(RuntimeError)
- init · method · L375-L379 — def init(self) -> None
- test_the_identity_pass_tells_an_account_from_a_version · function · L429-L438 — def test_the_identity_pass_tells_an_account_from_a_version(line, survives)
- test_the_access_token_never_reaches_the_bundle · function · L451-L485 — def test_the_access_token_never_reaches_the_bundle(cfg, tmp_path)
- test_a_long_name_equals_value_is_still_treated_as_opaque · function · L488-L502 — def test_a_long_name_equals_value_is_still_treated_as_opaque()
- test_a_credential_in_a_url_path_is_redacted_in_the_bundle · function · L505-L523 — def test_a_credential_in_a_url_path_is_redacted_in_the_bundle(cfg, tmp_path)
- test_schema_probe_distinguishes_future_and_corrupt_database · function · L527-L552 — def test_schema_probe_distinguishes_future_and_corrupt_database(cfg, future)
- _cli_diagnostics · function · L555-L564 — def _cli_diagnostics(monkeypatch, cfg, target)
- test_the_bundle_does_not_upgrade_a_database_from_an_older_release · function · L568-L606 — def test_the_bundle_does_not_upgrade_a_database_from_an_older_release( cfg, tmp_path, monkeypatch, capsys, conflicting )
- test_the_bundle_leaves_a_database_that_needs_recovery_closed · function · L609-L630 — def test_the_bundle_leaves_a_database_that_needs_recovery_closed(cfg, monkeypatch)
- test_the_bundle_does_not_open_a_database_whose_version_it_could_not_read · function · L633-L661 — def test_the_bundle_does_not_open_a_database_whose_version_it_could_not_read( cfg, monkeypatch )
- busy · function · L646-L647 — def busy(_a, *_k)