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

Function test_option_repr

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

Source from the content-addressed store, hash-verified

7
8
9def test_option_repr():
10 opt = Option("A_FAKE_OPTION", "some-value")
11 assert opt.name == "A_FAKE_OPTION"
12 assert repr(opt) == "Option(A_FAKE_OPTION='some-value')"
13
14
15@mock.patch.dict(os.environ, {"A_FAKE_OPTION": "value-from-environ"})

Callers

nothing calls this directly

Calls 1

OptionClass · 0.90

Tested by

no test coverage detected