Decode bottled/special LPG, community electric/biomass, dual-fuel, smokeless coal 🟥

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jun-te Kim 2026-06-19 14:18:33 +00:00
parent 9d0d12c278
commit b7d2cff220

View file

@ -47,6 +47,27 @@ def test_fuels_decode_to_their_modern_not_community_codes(
assert simulation.heating.main_fuel_type == code
@pytest.mark.parametrize(
("main_fuel_value", "code"),
[
("bottled LPG", 3),
("LPG special condition", 17),
("electricity (community)", 25),
("biomass (community)", 31),
("dual fuel (mineral and wood)", 10),
("smokeless coal", 15),
],
)
def test_more_fuels_decode_to_their_codes(main_fuel_value: str, code: int) -> None:
# Act
simulation = fuel_overlay_for(main_fuel_value, 0)
# Assert
assert simulation is not None
assert simulation.heating is not None
assert simulation.heating.main_fuel_type == code
def test_community_mains_gas_is_a_distinct_fuel_code() -> None:
# Act
simulation = fuel_overlay_for("mains gas (community)", 0)