aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test_interceptor.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_interceptor.py')
-rw-r--r--tests/test_interceptor.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test_interceptor.py b/tests/test_interceptor.py
index df5b6750..fb12beac 100644
--- a/tests/test_interceptor.py
+++ b/tests/test_interceptor.py
@@ -9,12 +9,7 @@ def test_interceptor():
valid_input = Input("这个叫苏向夜.")
def intercept(_: Input) -> Input | Output:
- output = Output()
- output.block = True # TODO 拦截器阻塞标识
- output.name = "block.jianlvchun"
- output.status = 0
- output.type = "text"
- return output
+ return Output("text", "block.jianlvchun", block=True) # TODO 拦截器阻塞标识
interceptor = Interceptor()
interceptor.interceptors = [