- Introduce `ArgumentAction.TLDR` for showing concise usage examples - Add `rich_text_to_prompt_text()` to support Rich-style markup in all prompt_toolkit inputs - Migrate all prompt-based Actions to use `prompt_message` with Rich styling support - Standardize `CancelSignal` as the default interrupt behavior for prompt-driven Actions
12 lines
346 B
Python
12 lines
346 B
Python
from falyx.parser import ArgumentAction
|
|
|
|
|
|
def test_argument_action():
|
|
action = ArgumentAction.APPEND
|
|
assert action == ArgumentAction.APPEND
|
|
assert action != ArgumentAction.STORE
|
|
assert action != "invalid_action"
|
|
assert action.value == "append"
|
|
assert str(action) == "append"
|
|
assert len(ArgumentAction.choices()) == 10
|