Orchestrata Ultimate › Tests › Reference › scripts › test_ast_inline
Tests reference — tests/scripts/test_ast_inline.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_ast_inline.py
source · 5 tests · 256 lines
Tests for the AST tool's
inlinesubcommand — the inverse ofgen-dto
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_inline_dataclass_expands_signature_body_and_callsite |
84 | A @dataclass DTO param is expanded: the signature lists the fields (with |
| function | test_inline_init_dto_with_keyword_passed_argument |
138 | A DTO defined by its __init__ and passed as cfg=Cfg(...) keyword is |
| function | test_inline_warns_on_positional_variable_callsite |
185 | A call passing the DTO positionally from a variable (not an inline ctor) |
| function | test_inline_unknown_param_returns_error |
208 | |
| function | test_inline_only_rewrites_calls_resolving_to_target |
218 | Two modules define a same-named handle(cfg: Cfg) and each calls its own. |