mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
A complete room-heater overlay does not log a companion gap 🟩
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
390e3e89d7
commit
962a443ed2
1 changed files with 14 additions and 0 deletions
|
|
@ -108,6 +108,20 @@ def test_overlay_logs_when_it_cannot_complete_a_companion_set(
|
|||
assert "Air source heat pump" in caplog.text
|
||||
|
||||
|
||||
def test_complete_room_heater_overlay_does_not_log_a_companion_gap(
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
) -> None:
|
||||
# Electric room heaters now resolve a full companion set (category 10 +
|
||||
# control 2601), so the overlay must NOT log an incomplete-companion gap —
|
||||
# guarding that the fix keeps the set complete.
|
||||
# Act
|
||||
with caplog.at_level(logging.ERROR):
|
||||
main_heating_overlay_for("Electric room heaters", 0)
|
||||
|
||||
# Assert
|
||||
assert "incomplete companion set" not in caplog.text
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("main_heating_value", "code"),
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue