aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test_handlers.py
diff options
context:
space:
mode:
author苏向夜 <fu050409@163.com>2024-03-04 17:56:12 +0800
committer苏向夜 <fu050409@163.com>2024-03-04 17:56:12 +0800
commitf195a1e7396b7eaa23ef6f14ffebb700cf741c75 (patch)
tree804d866854ba337d6979e86f3fc0e2c1c45df683 /tests/test_handlers.py
parent5b778ed5ea34862969653a4fc4e72d1debe09ee1 (diff)
downloadinfini-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.py9
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 = [