diff options
| author | 2024-03-04 17:56:12 +0800 | |
|---|---|---|
| committer | 2024-03-04 17:56:12 +0800 | |
| commit | f195a1e7396b7eaa23ef6f14ffebb700cf741c75 (patch) | |
| tree | 804d866854ba337d6979e86f3fc0e2c1c45df683 /tests/test_handlers.py | |
| parent | 5b778ed5ea34862969653a4fc4e72d1debe09ee1 (diff) | |
| download | infini-f195a1e7396b7eaa23ef6f14ffebb700cf741c75.tar.gz infini-f195a1e7396b7eaa23ef6f14ffebb700cf741c75.zip | |
test(workflow): add tests for workflow feature
Diffstat (limited to 'tests/test_handlers.py')
| -rw-r--r-- | tests/test_handlers.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/test_handlers.py b/tests/test_handlers.py index ee96cdab..79810ce0 100644 --- a/tests/test_handlers.py +++ b/tests/test_handlers.py @@ -11,12 +11,11 @@ def test_handler(): return Output( "text", str(sum(list(map(int, input.get_plain_text().lstrip(".add").split())))), - status=0, block=False, ) def cmd(_: Input) -> Output: - return Output("text", "cmd", status=0, block=False) + return Output("text", "cmd", block=False) handler = Handler() handler.handlers = [ @@ -45,12 +44,11 @@ def test_handler_block(): return Output( "text", str(sum(list(map(int, input.get_plain_text().lstrip(".add").split())))), - status=0, block=False, ) def cmd(_: Input) -> Output: - return Output("text", "cmd", status=0, block=True) + return Output("text", "cmd", block=True) handler = Handler() handler.handlers = [ @@ -79,10 +77,9 @@ def test_handler_interator(): yield Output( "text", str(sum(list(map(int, input.get_plain_text().lstrip(".add").split())))), - status=0, block=False, ) - yield Output("text", "ok", status=0, block=False) + yield Output("text", "ok", block=False) handler = Handler() handler.handlers = [ |
