mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
work on support args
This commit is contained in:
@@ -26,7 +26,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.set_unknown_command_handler(lambda command: print(f'Unknown command: {command.get_trigger()}'))
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -47,7 +47,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.set_unknown_command_handler(lambda command: print(f'Unknown command: {command.get_trigger()}'))
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -66,7 +66,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -85,7 +85,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -105,7 +105,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -125,7 +125,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.set_unknown_command_handler(lambda command: print(f'Unknown command: {command.get_trigger()}'))
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -149,7 +149,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.set_unknown_command_handler(lambda command: print(f'Unknown command: {command.get_trigger()}'))
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -169,7 +169,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.set_invalid_input_flags_handler(lambda command: print(f'Incorrect flag syntax: "{command}"'))
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -189,7 +189,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.set_empty_command_handler(lambda: print('Empty input command'))
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -209,7 +209,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.set_repeated_input_flags_handler(lambda command: print(f'Repeated input flags: "{command}"'))
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -45,7 +45,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -65,7 +65,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -84,7 +84,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -104,7 +104,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -125,7 +125,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -145,7 +145,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -165,7 +165,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -188,7 +188,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
@@ -215,7 +215,7 @@ class TestSystemHandlerNormalWork(unittest.TestCase):
|
||||
app = App(override_system_messages=True,
|
||||
print_func=print)
|
||||
app.include_router(router)
|
||||
app.start_polling()
|
||||
app.run_polling()
|
||||
|
||||
output = mock_stdout.getvalue()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user