aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test_core.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 01d7ecb4..11a8c57d 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -4,7 +4,7 @@ from infini.handler import Handler
from infini.input import Input
from infini.interceptor import Interceptor
from infini.output import Output
-from infini.router import ContainsRouter, StartswithRouter
+from infini.router import Contains, Startswith
def test_core():
@@ -20,7 +20,7 @@ def test_core():
interceptor.interceptors = [
{
"priority": 1,
- "router": ContainsRouter("简律纯"),
+ "router": Contains("简律纯"),
"handler": intercept_jianlvchun,
}
]
@@ -38,12 +38,12 @@ def test_core():
handler.handlers = [
{
"priority": 2,
- "router": StartswithRouter(".add"),
+ "router": Startswith(".add"),
"handler": add,
},
{
"priority": 1,
- "router": StartswithRouter("."),
+ "router": Startswith("."),
"handler": cmd,
},
]