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

Function test_option_from_os_environ

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

Source from the content-addressed store, hash-verified

14
15@mock.patch.dict(os.environ, {"A_FAKE_OPTION": "value-from-environ"})
16def test_option_from_os_environ():
17 opt = Option("A_FAKE_OPTION", "default-value")
18 assert opt.current == "value-from-environ"
19
20
21def test_option_from_default():

Callers

nothing calls this directly

Calls 1

OptionClass · 0.90

Tested by

no test coverage detected