tuxemon.cli.commands.test module
- class tuxemon.cli.commands.test.TestConditionCommand[source]
Bases:
CLICommand
Subcommand used by
test
to evaluate EventConditions.“is” prefix is implied; do not include “is” or “not”.
- invoke(ctx, line)[source]
Test a condition.
do not use “is” or “not”.
- Parameters:
ctx (InvokeContext) – Contains references to parts of the game and CLI interface.
line (str) – Input text after the command name.
- Return type:
None
- usable_from_root: ClassVar[bool] = False
- class tuxemon.cli.commands.test.TestConditionParentCommand[source]
Bases:
CLICommand
Command that will test a condition.
- description: ClassVar[str] = 'Evaluate condition and print the result.'
- example: ClassVar[str] = 'test player_facing up'
- get_subcommands(ctx)[source]
Return subcommands that will evaluate an EventCondition.
- Parameters:
ctx (InvokeContext) – Contains references to parts of the game and CLI interface.
- Return type:
Iterable[CLICommand]
- invoke(ctx, line)[source]
Default when no arguments are entered.
- Parameters:
ctx (InvokeContext) – Contains references to parts of the game and CLI interface.
line (str) – Input text after the command name.
- Return type:
None
- name: ClassVar[str] = 'test'