Orchestrata Ultimate › Tests › Reference › scripts › test_ast_phase1_fixes

Tests reference — tests/scripts/test_ast_phase1_fixes.py

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

Prose pending.

tests/scripts/test_ast_phase1_fixes.py

source · 6 tests · 155 lines

Regression tests for AST-toolkit Phase-1 correctness fixes.

Kind Name Line Description
function test_pattern_inplace_singleton_inserts_after_class_docstring 54
function test_pattern_inplace_multiline_class_signature_stays_valid 69 A multi-line class signature must NOT be spliced into — the old code
function test_pattern_inplace_rejects_unsplittable_single_line_body 88 class Foo: pass cannot be spliced by line — the tool must refuse and
function test_move_symbol_copies_imports_into_existing_dest 112 Moving a symbol into an EXISTING module must carry the import its body
function test_move_symbol_dedupes_imports_in_existing_dest 131
function test_move_symbol_no_import_warning_when_source_has_no_imports 144 The 'destination receives a copy of imports' warning must only fire when