mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
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:
parent
9d0d12c278
commit
b7d2cff220
1 changed files with 21 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue