Fixed mypy error in route registry test caused by union return type unpacking.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 20s
CI / Tests (Python 3.13) (push) Successful in 19s
CI / Tests (Python 3.14) (push) Successful in 30s
CI / Type Checking (push) Successful in 11s
CI / Spelling (push) Successful in 7s
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 20s
CI / Tests (Python 3.13) (push) Successful in 19s
CI / Tests (Python 3.14) (push) Successful in 30s
CI / Type Checking (push) Successful in 11s
CI / Spelling (push) Successful in 7s
This commit is contained in:
@@ -360,8 +360,8 @@ class TestRouteRegistry:
|
|||||||
info = reg.register("/data", _noop, methods=["GET"], module_name="mod")
|
info = reg.register("/data", _noop, methods=["GET"], module_name="mod")
|
||||||
assert info.full_path == "/owlbot/mod/data"
|
assert info.full_path == "/owlbot/mod/data"
|
||||||
assert info.methods == frozenset({"GET"})
|
assert info.methods == frozenset({"GET"})
|
||||||
route_info, _ = reg.match("/owlbot/mod/data", "GET")
|
result = reg.match("/owlbot/mod/data", "GET")
|
||||||
assert route_info is info
|
assert result[0] is info
|
||||||
|
|
||||||
def test_unregister_unknown_path(self) -> None:
|
def test_unregister_unknown_path(self) -> None:
|
||||||
"""unregister() returns False for unknown path."""
|
"""unregister() returns False for unknown path."""
|
||||||
|
|||||||
Reference in New Issue
Block a user