Orchestrata Ultimate › Tests › Reference › scripts › test_observe_pytest

Tests reference — tests/scripts/test_observe_pytest.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_observe_pytest.py

source · 41 tests · 693 lines

Tests for scripts/observe_pytest.py -- the CLI observer that attaches to

Covers: core.threading.pytest_live_observer

Kind Name Line Description
function test_list_shows_seeded_running_session 70
function test_list_with_no_sessions_prints_clear_message 92
function test_attach_unknown_session_id_fails_cleanly 102
function test_attach_latest_with_no_running_sessions_fails_cleanly 112
function test_attach_latest_skips_sigkill_orphaned_running_entry 124 A SIGKILLed run leaves a permanently-"running" registry entry whose
function test_attach_once_renders_events_from_live_log 165
function test_attach_fails_cleanly_when_live_log_is_missing 210
function test_attach_follows_real_subprocess_and_terminates_at_session_finish 227 The full live path, end to end: a real short pytest subprocess (with
function test_attach_timeout_is_reported_when_session_never_finishes 274 A session stuck "running" forever (its live log never gets a
function test_attach_fails_cleanly_when_session_has_no_live_log_path 292
function test_attach_follow_fails_cleanly_when_live_log_is_missing 305 Same missing-file failure as --once, but through the (default)
function test_follow_exits_when_registry_flips_to_finished_without_a_session_finish_event 325 _follow must also exit cleanly when the registry entry is (or
function test_session_status_returns_none_for_unknown_session 350
function test_fmt_ago_formats_seconds_minutes_hours_and_clamps_negative 356
function test_parse_line_skips_blank_lines_and_invalid_or_non_dict_json 365
function test_render_event_handles_report_passed_event 372
function test_render_event_handles_report_failed_event 386
function test_render_event_handles_report_skipped_event 400
function test_render_event_ignores_non_terminal_report_events 414
function test_render_event_handles_report_setup_failure 429
function test_render_event_handles_report_unknown_outcome 443
function test_render_event_handles_collect_error 457
function test_render_event_handles_session_start 468
function test_render_event_handles_collection_finished 476
function test_render_event_handles_capped_event 488
function test_render_event_handles_session_finish 499
function test_format_progress_handles_none_selected 513
function test_format_progress_handles_zero_selected 522
function test_format_progress_handles_positive_selected 532
function test_pid_alive_returns_false_for_non_int 542
function test_pid_alive_returns_false_for_dead_process 548
function test_pid_alive_returns_true_for_this_process 553
function test_find_session_returns_none_for_unknown_session 557
function test_find_session_returns_none_when_no_running_sessions 562
function test_find_session_returns_latest_running_session 569
function test_find_session_returns_exact_match 579
function test_find_session_excludes_sigkill_orphans_as_latest 588
function test_render_snapshot_handles_missing_log_path 601
function test_render_snapshot_renders_all_events 611
function test_format_session_line_formats_all_fields 651 _format_session_line produces stable key=value output.
function test_format_session_line_handles_missing_fields 679 _format_session_line uses ? defaults for missing fields.