Orchestrata Ultimate › Tests › Reference › scripts › test_rts

Tests reference — tests/scripts/test_rts.py

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

Prose pending.

tests/scripts/test_rts.py

source · 32 tests · 547 lines

Tests for scripts/rts.py — AST-based safe regression test selection.

Kind Name Line Description
function test_q_plain_atom 45
function test_q_escapes_backslash_then_quote 49
function test_q_coerces_non_string 54
function test_parse_pred_reads_matching_facts_only 64
function test_parse_pred_no_match_returns_empty 74
function test_extract_captures_every_def_kind 83
function test_extract_call_edge_forms 124
function test_extract_import_prefix_edges 161
function test_extract_test_detection_rules 182
function test_extract_module_level_calls_attributed_to_module_symbol 204
function test_extract_relative_imports 219
function test_extract_unresolved_relative_import_is_escape 243
function test_extract_relative_import_at_root 252
function test_extract_syntax_error_is_safety_escape 270
function test_extract_conftest_is_safety_escape 279
function test_extract_byte_complete_constant_change_hits_residue_only 294
function test_extract_byte_complete_body_change_hits_function_only 307
function test_extract_hash_matches_sha256_of_source_segment 321
function test_extract_non_python_files_hashed 334
function test_extract_skips_vcs_caches_and_runtime_dirs 355
function test_extract_claude_non_run_files_are_captured 363
function test_extract_empty_root_yields_headers_only 374
function test_main_no_args_prints_usage_and_returns_2 394
function test_main_unknown_command_returns_2 402
function test_main_extract_writes_snapshot 408
function test_main_select_changed_function_selects_dependent_tests 445
function test_main_select_no_changes_skips_everything 463
function test_main_select_deleted_symbol_is_changed 477
function test_main_select_safety_escape_forces_full_run 490
function test_main_select_non_python_change_forces_full_run 504
function test_main_select_non_python_removal_forces_full_run 518
function test_cli_entrypoint_usage_error_via_subprocess 536 A genuine python scripts/rts.py invocation — proves the main