mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
refactor tests
This commit is contained in:
@@ -363,7 +363,7 @@ class App(BaseApp):
|
||||
system_router_title: str | None = "System points:",
|
||||
ignore_command_register: bool = True,
|
||||
dividing_line: AVAILABLE_DIVIDING_LINES = DEFAULT_DIVIDING_LINE,
|
||||
repeat_command_groups_printing: bool = True,
|
||||
repeat_command_groups_printing: bool = False,
|
||||
override_system_messages: bool = False,
|
||||
autocompleter: AutoCompleter = DEFAULT_AUTOCOMPLETER,
|
||||
print_func: Printer = DEFAULT_PRINT_FUNC,
|
||||
|
||||
@@ -58,11 +58,11 @@ class Router:
|
||||
|
||||
self._validate_command(redefined_command)
|
||||
|
||||
if overlapping := (self.aliases | self.triggers) & command.aliases:
|
||||
if overlapping := (self.aliases | self.triggers) & redefined_command.aliases:
|
||||
Console().print(f"\n[b red]WARNING:[/b red] Overlapping trigger or alias: [b blue]{overlapping}[/b blue]")
|
||||
|
||||
self.aliases.update(command.aliases)
|
||||
self.triggers.add(command.trigger)
|
||||
self.aliases.update(redefined_command.aliases)
|
||||
self.triggers.add(redefined_command.trigger)
|
||||
|
||||
def decorator(func: HandlerFunc) -> HandlerFunc:
|
||||
_validate_func_args(func)
|
||||
|
||||
Reference in New Issue
Block a user