new tests

This commit is contained in:
2025-12-07 01:51:24 +03:00
parent 9423034a08
commit 425342c059
4 changed files with 554 additions and 6 deletions
+1 -1
View File
@@ -340,7 +340,7 @@ class BaseApp:
if not self._repeat_command_groups_printing_description:
self._print_command_group_description()
def _process_exist_and_valid_command(self, input_command: InputCommand):
def _process_exist_and_valid_command(self, input_command: InputCommand) -> None:
processing_router = self._current_matching_triggers_with_routers[input_command.trigger.lower()]
if processing_router.disable_redirect_stdout:
+4 -5
View File
@@ -43,11 +43,10 @@ class Flag:
Private. Validates the input flag value
:param input_flag_value: The input flag value to validate
:return: whether the entered flag is valid as bool
"""
if self.possible_values == PossibleValues.NEITHER:
return input_flag_value == ''
if self.possible_values == PossibleValues.ALL:
"""
if isinstance(self.possible_values, PossibleValues):
if self.possible_values == PossibleValues.NEITHER:
return input_flag_value == ''
return input_flag_value != ''
if isinstance(self.possible_values, Pattern):