MCPcopy 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
21def 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

OptionClass · 0.90

Tested by

no test coverage detected