MCPcopy Index your code
hub / github.com/reactive-python/reactpy / test_option_parent

Function test_option_parent

src/py/reactpy/tests/test__option.py:114–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113
114def test_option_parent():
115 parent_opt = Option("A_FAKE_OPTION", "default-value", mutable=True)
116 child_opt = Option("A_FAKE_OPTION", parent=parent_opt)
117 assert child_opt.mutable
118 assert child_opt.current == "default-value"
119
120 parent_opt.current = "new-value"
121 assert child_opt.current == "new-value"
122
123
124def test_option_parent_child_must_be_mutable():

Callers

nothing calls this directly

Calls 1

OptionClass · 0.90

Tested by

no test coverage detected