MCPcopy Create free account
hub / github.com/dot-agent/nextpy / test_get_current_page

Function test_get_current_page

tests/test_state.py:824–830  ·  view source on GitHub ↗
(test_state)

Source from the content-addressed store, hash-verified

822
823
824def test_get_current_page(test_state):
825 assert test_state.get_current_page() == ""
826
827 route = "mypage/subpage"
828 test_state.router = RouterData({RouteVar.PATH: route})
829
830 assert test_state.get_current_page() == route
831
832
833def test_get_query_params(test_state):

Callers

nothing calls this directly

Calls 2

RouterDataClass · 0.90
get_current_pageMethod · 0.80

Tested by

no test coverage detected