(empty_environ)
| 186 | |
| 187 | |
| 188 | def test_get_combined_config_dev_tools_ui(empty_environ): |
| 189 | val1 = get_combined_config("ui", None, default=False) |
| 190 | assert ( |
| 191 | not val1 |
| 192 | ), "should return the default value if None is provided for init and environment" |
| 193 | |
| 194 | os.environ["DASH_UI"] = "true" |
| 195 | val2 = get_combined_config("ui", None, default=False) |
| 196 | assert val2, "should return the set environment value as True" |
| 197 | |
| 198 | val3 = get_combined_config("ui", False, default=True) |
| 199 | assert not val3, "init value overrides the environment value" |
| 200 | |
| 201 | |
| 202 | def test_get_combined_config_props_check(empty_environ): |
nothing calls this directly
no test coverage detected
searching dependent graphs…