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

Function test_option_set_default

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

Source from the content-addressed store, hash-verified

70
71
72def test_option_set_default():
73 opt = Option("A_FAKE_OPTION", "default-value")
74 assert not opt.is_set()
75 assert opt.set_default("new-value") == "new-value"
76 assert opt.is_set()
77
78
79def test_cannot_subscribe_immutable_option():

Callers

nothing calls this directly

Calls 3

is_setMethod · 0.95
set_defaultMethod · 0.95
OptionClass · 0.90

Tested by

no test coverage detected