diff options
| author | 2024-03-11 09:40:55 +0800 | |
|---|---|---|
| committer | 2024-03-11 09:40:55 +0800 | |
| commit | 93581961abaf7edd2dc89170fb73a97a65857628 (patch) | |
| tree | 2dcdc9e47bdceb86ad2df23e87137e38fcd015a1 /tests/test_handlers.py | |
| parent | 67cf02ba9bf39116126ef8360cedff5410a20694 (diff) | |
| parent | 5e07496ab7f428379f2ecb3505894241b9073b9e (diff) | |
| download | infini-93581961abaf7edd2dc89170fb73a97a65857628.tar.gz infini-93581961abaf7edd2dc89170fb73a97a65857628.zip | |
Merge branches 'master' and 'master' of https://github.com/HydroRoll-Team/infini
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 = [ |
