Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/reactive-python/reactpy
/ test_option_from_default
Function
test_option_from_default
src/py/reactpy/tests/test__option.py:21–24 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
19
20
21
def
test_option_from_default():
22
opt = Option(
"A_FAKE_OPTION"
,
"default-value"
)
23
assert opt.current ==
"default-value"
24
assert opt.current is opt.default
25
26
27
@mock.patch.dict(os.environ, {
"A_FAKE_OPTION"
:
"1"
})
Callers
nothing calls this directly
Calls
1
Option
Class · 0.90
Tested by
no test coverage detected