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

Function test_get_client_token

tests/units/test_state.py:1040–1050  ·  view source on GitHub ↗

Test that the token obtained from the router_data is correct. Args: test_state: The test state. router_data: The router data fixture.

(test_state, router_data)

Source from the content-addressed store, hash-verified

1038
1039
1040def test_get_client_token(test_state, router_data):
1041 """Test that the token obtained from the router_data is correct.
1042
1043 Args:
1044 test_state: The test state.
1045 router_data: The router data fixture.
1046 """
1047 test_state.router = RouterData.from_router_data(router_data)
1048 assert (
1049 test_state.router.session.client_token == "b181904c-3953-4a79-dc18-ae9518c22f05"
1050 )
1051
1052
1053def test_get_sid(test_state, router_data):

Callers

nothing calls this directly

Calls 1

from_router_dataMethod · 0.45

Tested by

no test coverage detected