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

This commit is contained in:
2026-04-24 22:18:08 +03:00
parent 84b5bb72a4
commit 40317f795e
+2 -2
View File
@@ -17,9 +17,9 @@ def action(params):
class TestDispatcher(unittest.TestCase):
def test_dispatcher(self):
dispatcher = Dispatcher()
params ={'param': True}
params ={'param': 'value'}
dispatcher.register('name', comparator, action)
method = dispatcher(params)
print(method)
result = method(params)
self.assertTrue(result)
self.assertEqual(result, 'value')