MCPcopy
hub / github.com/plotly/dash / test_get_combined_config_props_check

Function test_get_combined_config_props_check

tests/unit/test_configs.py:202–213  ·  view source on GitHub ↗
(empty_environ)

Source from the content-addressed store, hash-verified

200
201
202def test_get_combined_config_props_check(empty_environ):
203 val1 = get_combined_config("props_check", None, default=False)
204 assert (
205 not val1
206 ), "should return the default value if None is provided for init and environment"
207
208 os.environ["DASH_PROPS_CHECK"] = "true"
209 val2 = get_combined_config("props_check", None, default=False)
210 assert val2, "should return the set environment value as True"
211
212 val3 = get_combined_config("props_check", False, default=True)
213 assert not val3, "init value overrides the environment value"
214
215
216def test_load_dash_env_vars_refects_to_os_environ(empty_environ):

Callers

nothing calls this directly

Calls 1

get_combined_configFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…