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

Function test_option_reload

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

Source from the content-addressed store, hash-verified

56
57@mock.patch.dict(os.environ, {"A_FAKE_OPTION": "value-from-environ"})
58def test_option_reload():
59 opt = Option("A_FAKE_OPTION", "default-value")
60 opt.current = "some-other-value"
61 opt.reload()
62 assert opt.current == "value-from-environ"
63
64
65def test_option_set():

Callers

nothing calls this directly

Calls 2

reloadMethod · 0.95
OptionClass · 0.90

Tested by

no test coverage detected