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

Function test_option_reset

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

Source from the content-addressed store, hash-verified

47
48
49def test_option_reset():
50 opt = Option("A_FAKE_OPTION", "default-value")
51 opt.current = "a-new-value"
52 opt.unset()
53 assert opt.current is opt.default
54 assert not opt.is_set()
55
56
57@mock.patch.dict(os.environ, {"A_FAKE_OPTION": "value-from-environ"})

Callers

nothing calls this directly

Calls 3

unsetMethod · 0.95
is_setMethod · 0.95
OptionClass · 0.90

Tested by

no test coverage detected