mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Map community mains gas to its distinct fuel code 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a402a3858e
commit
39950d410c
1 changed files with 10 additions and 0 deletions
|
|
@ -40,3 +40,13 @@ def test_fuels_decode_to_their_modern_not_community_codes(
|
||||||
assert simulation is not None
|
assert simulation is not None
|
||||||
assert simulation.heating is not None
|
assert simulation.heating is not None
|
||||||
assert simulation.heating.main_fuel_type == code
|
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)
|
||||||
|
|
||||||
|
# Assert — community mains gas is code 20, distinct from 26 (not community).
|
||||||
|
assert simulation is not None
|
||||||
|
assert simulation.heating is not None
|
||||||
|
assert simulation.heating.main_fuel_type == 20
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue