aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test_handlers.py
diff options
context:
space:
mode:
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 = [