Orchestrata Ultimate › Tests › Reference › scripts › test_worktrees

Tests reference — tests/scripts/test_worktrees.py

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

Prose pending.

tests/scripts/test_worktrees.py

source · 12 tests · 233 lines

Tests for scripts/worktrees.py — the worktree lifecycle manager.

Kind Name Line Description
function test_create_no_env_makes_worktree_and_branch 64
function test_create_refuses_existing_path 76
function test_list_reports_merge_and_dirty_state 84
function test_gc_dry_run_removes_nothing 106
function test_gc_apply_removes_no_ff_merged_clean_worktree_with_proof 118
function test_gc_never_removes_fresh_worktree_even_after_master_moves 131 The hole the first draft fell into: a FRESH branch (no commits) is an
function test_gc_never_touches_unmerged_branch 150
function test_gc_never_touches_dirty_worktree 166
function test_gc_skips_non_wt_named_worktrees 178
function test_foreign_shebang_scripts_detects_poisoned_and_dead_interpreters 188 The basedpyright incident: a console script in venv A whose shebang
function test_foreign_shebang_scripts_flags_live_interpreter_outside_own_venv 213 A shebang that resolves to a REAL python outside this venv is still
function test_foreign_shebang_scripts_empty_for_missing_bin_dir 232