Electric boiler overrides no longer log an incomplete companion set 🟩

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-03 14:08:30 +00:00
parent 077dcf6bac
commit 7a99c7eccb

View file

@ -457,6 +457,24 @@ def test_electric_boiler_overlays_the_boiler_category(
assert simulation.heating.main_heating_category == 2
@pytest.mark.parametrize(
"main_heating_value",
["Direct-acting electric", "Electric boiler", "Electric CPSU"],
)
def test_complete_electric_boiler_overlay_does_not_log_a_companion_gap(
main_heating_value: str, caplog: pytest.LogCaptureFixture
) -> None:
# Electric boilers now resolve a full companion set (category 2 + control
# 2101, ADR-0052), so the overlay must NOT log an incomplete-companion gap
# — guarding that the set stays complete.
# Act
with caplog.at_level(logging.ERROR):
main_heating_overlay_for(main_heating_value, 0)
# Assert
assert "incomplete companion set" not in caplog.text
@pytest.mark.parametrize(
"main_heating_value",
["Direct-acting electric", "Electric boiler", "Electric CPSU"],