MCPcopy
hub / github.com/reflex-dev/reflex / test_get_current_page

Function test_get_current_page

tests/units/test_state.py:1096–1101  ·  view source on GitHub ↗
(test_state)

Source from the content-addressed store, hash-verified

1094
1095
1096def test_get_current_page(test_state):
1097 assert test_state.router._page.path == ""
1098
1099 route = "mypage/subpage"
1100 test_state.router = RouterData.from_router_data({RouteVar.PATH: route})
1101 assert test_state.router._page.path == route
1102
1103
1104def test_get_query_params(test_state):

Callers

nothing calls this directly

Calls 1

from_router_dataMethod · 0.45

Tested by

no test coverage detected