Cython routing added
Lint Code / lint (push) Failing after 44s
Run Tests / test (3.12) (push) Successful in 3m48s
Run Tests / test (3.13) (push) Successful in 3m7s
CI/CD Pipeline / test (push) Successful in 1s
CI/CD Pipeline / build-and-release (push) Has been skipped
CI/CD Pipeline / notify (push) Successful in 1s
CI/CD Pipeline / lint (push) Successful in 0s

This commit is contained in:
Илья Глазунов
2026-01-31 02:44:50 +03:00
parent fe541778f1
commit eeeccd57da
10 changed files with 1106 additions and 63 deletions
-6
View File
@@ -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()