mirror of
https://github.com/esphome/esphome.git
synced 2026-08-24 07:06:20 +00:00
Tighten the spelling-test docstring
This commit is contained in:
@@ -1124,8 +1124,6 @@ def test_format_duration(seconds: float, expected: str) -> None:
|
||||
def test_get_bool_env_common_spellings(
|
||||
monkeypatch: pytest.MonkeyPatch, value: str, expected: bool
|
||||
) -> None:
|
||||
"""The common on/off spellings parse instead of falling through to
|
||||
bool(str), which read "off" as enabled (e.g. IDF_CCACHE_ENABLE=off
|
||||
left ccache on)."""
|
||||
"""The common on/off spellings parse instead of reading as truthy."""
|
||||
monkeypatch.setenv("SOME_KNOB", value)
|
||||
assert helpers.get_bool_env("SOME_KNOB") is expected
|
||||
|
||||
Reference in New Issue
Block a user