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

Function test_get_parent_state

tests/units/test_state.py:508–513  ·  view source on GitHub ↗

Test getting the parent state.

()

Source from the content-addressed store, hash-verified

506
507
508def test_get_parent_state():
509 """Test getting the parent state."""
510 assert TestState.get_parent_state() is None
511 assert ChildState.get_parent_state() == TestState
512 assert ChildState2.get_parent_state() == TestState
513 assert GrandchildState.get_parent_state() == ChildState
514
515
516def test_get_substates():

Callers

nothing calls this directly

Calls 1

get_parent_stateMethod · 0.80

Tested by

no test coverage detected