Обновить tests/test_dispatcher.py
Тест / Tester (push) Successful in 2s

This commit is contained in:
2026-04-24 23:04:26 +03:00
parent 2f6b8d4968
commit 78ce3a2d92
+6 -2
View File
@@ -28,11 +28,15 @@ class TestDispatcher(unittest.TestCase):
dispatcher.register('name', comparator1, action)
method = dispatcher(params)
result = method(params)
self.assertEqual(result, 'value')
self.assertEqual(result, 'value3')
def test_sub(self):
dispatcher = Dispatcher()
params ={'param': 'value'}
params ={
'param1': 'value1',
'param2': 'value2',
'param3': 'value3'
}
sub = Dispatcher()
sub.register('name', comparator2, action)