Orchestrata Ultimate › Tests › Reference › claude › test_claude_turn_capture_coverage
Tests reference — tests/claude/test_claude_turn_capture_coverage.py
Module of tests/claude, split out because the directory page would be too large.
Prose pending.
tests/claude/test_claude_turn_capture_coverage.py
source · 29 tests · 608 lines
Coverage tests for
claude/tools/claude_turn_capture.py.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_traces_is_a_noop_decorator |
110 | |
| function | test_queue_key_default_and_override |
120 | |
| function | test_now_iso_parses |
126 | |
| function | test_build_redis_client_reaches_the_real_fleet |
132 | |
| function | test_resolve_project_precedence |
153 | |
| function | test_resolve_project_invalid_pyproject_falls_back_to_dirname |
168 | |
| function | test_resolve_project_nameless_pyproject_falls_back_to_dirname |
176 | |
| function | test_resolve_project_from_transcript_parent |
184 | |
| function | test_resolve_project_nothing_resolves_to_none |
192 | |
| function | test_session_seq_is_stable_and_unique_per_session |
203 | |
| function | test_concurrent_session_seq_allocation_agrees_on_one_seq |
216 | Real race on real Redis: every concurrent invocation of a fresh |
| function | test_enqueue_lpushes_and_trims_drop_oldest |
248 | |
| function | test_user_prompt_submit_enqueues_a_message_v2_user_turn |
265 | |
| function | test_user_prompt_content_is_truncated_to_the_contract_max |
289 | |
| function | test_user_prompt_submit_guard_rails_enqueue_nothing |
302 | |
| function | test_user_prompt_submit_without_a_project_is_a_noop |
319 | |
| function | test_extract_tool_calls_reads_only_real_tool_use_blocks |
333 | |
| function | test_extract_assistant_text_joins_text_blocks_only |
353 | |
| function | test_read_assistant_entries_skips_malformed_and_non_assistant |
371 | |
| function | test_read_assistant_entries_missing_file_is_an_empty_list |
394 | |
| function | test_delta_since_variants |
400 | |
| function | test_handle_stop_captures_prose_holds_tools_then_attaches_them |
411 | |
| function | test_handle_stop_ignores_a_corrupt_or_misshapen_pending_blob |
459 | |
| function | test_handle_stop_guard_rails_enqueue_nothing |
493 | |
| function | test_run_disabled_by_env_captures_nothing |
515 | |
| function | test_run_blank_malformed_and_unknown_events_are_noops |
530 | |
| function | test_run_dispatches_both_events |
547 | |
| function | test_run_fails_open_on_a_broken_redis_config |
578 | |
| function | test_main_reads_stdin_and_exits_quietly_on_empty_input |
598 | main() with an empty stdin must not raise and must not enqueue |