diff options
| author | 2024-01-27 22:27:41 +0800 | |
|---|---|---|
| committer | 2024-01-27 22:27:41 +0800 | |
| commit | 1d9a500b727e8879cdaeb9c378ac717001c56ccc (patch) | |
| tree | 58d3dd78970d2458372ac67353163f602c0cf017 /tests/test_interceptor.py | |
| parent | 69e46bfe4d5429f9c3eebb1747bd8e5290f7823b (diff) | |
| download | infini-1d9a500b727e8879cdaeb9c378ac717001c56ccc.tar.gz infini-1d9a500b727e8879cdaeb9c378ac717001c56ccc.zip | |
:sparkles: feat(router): supports alias router
Diffstat (limited to 'tests/test_interceptor.py')
| -rw-r--r-- | tests/test_interceptor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_interceptor.py b/tests/test_interceptor.py index afb135e9..ffb03d56 100644 --- a/tests/test_interceptor.py +++ b/tests/test_interceptor.py @@ -1,7 +1,7 @@ from infini.input import Input from infini.interceptor import Interceptor from infini.output import Output -from infini.router import ContainsRouter +from infini.router import Contains def test_interceptor(): @@ -15,7 +15,7 @@ def test_interceptor(): interceptor.interceptors = [ { "priority": 1, - "router": ContainsRouter("简律纯"), + "router": Contains("简律纯"), "handler": intercept, } ] |
