forked from aegis/pyserveX
Cython routing added
This commit is contained in:
@@ -50,16 +50,10 @@ class TestRouter:
|
||||
def test_router_initialization(self):
|
||||
"""Test router initializes with correct defaults."""
|
||||
router = Router()
|
||||
assert router.static_dir == Path("./static")
|
||||
assert router.routes == {}
|
||||
assert router.exact_routes == {}
|
||||
assert router.default_route is None
|
||||
|
||||
def test_router_custom_static_dir(self):
|
||||
"""Test router with custom static directory."""
|
||||
router = Router(static_dir="/custom/path")
|
||||
assert router.static_dir == Path("/custom/path")
|
||||
|
||||
def test_add_exact_route(self):
|
||||
"""Test adding exact match route."""
|
||||
router = Router()
|
||||
|
||||
Reference in New Issue
Block a user