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

Function test_get_query_params

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

Source from the content-addressed store, hash-verified

1102
1103
1104def test_get_query_params(test_state):
1105 assert test_state.router._page.params == {}
1106
1107 params = {"p1": "a", "p2": "b"}
1108 test_state.router = RouterData.from_router_data({RouteVar.QUERY: params})
1109 assert dict(test_state.router._page.params) == params
1110
1111
1112def test_add_var():

Callers

nothing calls this directly

Calls 1

from_router_dataMethod · 0.45

Tested by

no test coverage detected