This commit is contained in:
2025-05-09 18:23:08 +03:00
parent 393f5c7d81
commit 650f4c9036
6 changed files with 84 additions and 44 deletions
@@ -180,7 +180,7 @@ class TestSystemHandlerNormalWork(TestCase):
app = App(override_system_messages=True,
print_func=print)
app.include_router(router)
app.set_invalid_input_flags_handler(lambda command: print(f'Incorrect flag syntax: "{command}"'))
app.set_incorrect_input_syntax_handler(lambda command: print(f'Incorrect flag syntax: "{command}"'))
orchestrator.start_polling(app)
output = mock_stdout.getvalue()
-3
View File
@@ -12,9 +12,6 @@ import re
class TestRouter(unittest.TestCase):
def test_get_router_title(self):
self.assertEqual(Router(title='test title').get_title(), 'test title')
def test_register_command_with_spaces_in_trigger(self):
router = Router()
with self.assertRaises(TriggerContainSpacesException):