mirror of
https://github.com/esphome/esphome.git
synced 2026-10-05 18:41:32 +00:00
Put the measured password cost in the warning
This commit is contained in:
@@ -357,7 +357,7 @@ def test_password_with_api_key_warns(caplog: pytest.LogCaptureFixture) -> None:
|
||||
try:
|
||||
with caplog.at_level(logging.WARNING):
|
||||
ota_esphome_final_validate({})
|
||||
assert any("wastes flash and RAM" in r.message for r in caplog.records)
|
||||
assert any("wastes significant flash" in r.message for r in caplog.records)
|
||||
finally:
|
||||
fv.full_config.reset(token)
|
||||
|
||||
@@ -379,7 +379,7 @@ def test_password_without_static_api_key_no_warning(
|
||||
try:
|
||||
with caplog.at_level(logging.WARNING):
|
||||
ota_esphome_final_validate({})
|
||||
assert not any("wastes flash and RAM" in r.message for r in caplog.records)
|
||||
assert not any("wastes significant flash" in r.message for r in caplog.records)
|
||||
finally:
|
||||
fv.full_config.reset(token)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user