Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/reactive-python/reactpy
/ test_option_set
Function
test_option_set
src/py/reactpy/tests/test__option.py:65–69 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
63
64
65
def
test_option_set():
66
opt = Option(
"A_FAKE_OPTION"
,
"default-value"
)
67
assert not opt.is_set()
68
opt.current =
"a-new-value"
69
assert opt.is_set()
70
71
72
def
test_option_set_default():
Callers
nothing calls this directly
Calls
2
is_set
Method · 0.95
Option
Class · 0.90
Tested by
no test coverage detected