Orchestrata Ultimate › Tests › Reference › scripts › test_ast_extract
Tests reference — tests/scripts/test_ast_extract.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_ast_extract.py
source · 5 tests · 210 lines
Tests for the AST tool's
extract-methodsubcommand
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_extract_function_dry_run_then_apply_preserves_behaviour |
78 | Extract two interior lines of a plain function: the new def + the rewritten |
| function | test_extract_method_emits_self_method_and_preserves_behaviour |
127 | Extracting from a method emits a real self.-dispatched method INSIDE |
| function | test_extract_no_output_range_emits_bare_call |
166 | A range that stores nothing read after it yields a bare call (no |
| function | test_extract_rejects_invalid_new_name |
199 | |
| function | test_extract_empty_range_returns_error |
206 |