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:
Khalim Conn-Kowlessar 2026-07-03 09:17:06 +00:00
parent 390e3e89d7
commit 962a443ed2

View file

@ -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"),
[