mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Produce no overlay for an unresolvable landlord fuel value 🟩
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
07aea7ef9b
commit
35b48cc8fc
1 changed files with 9 additions and 0 deletions
|
|
@ -50,3 +50,12 @@ def test_community_mains_gas_is_a_distinct_fuel_code() -> None:
|
|||
assert simulation is not None
|
||||
assert simulation.heating is not None
|
||||
assert simulation.heating.main_fuel_type == 20
|
||||
|
||||
|
||||
@pytest.mark.parametrize("main_fuel_value", ["Unknown", "", "no heating or hot water"])
|
||||
def test_unresolvable_fuel_produces_no_overlay(main_fuel_value: str) -> None:
|
||||
# Act
|
||||
simulation = fuel_overlay_for(main_fuel_value, 0)
|
||||
|
||||
# Assert
|
||||
assert simulation is None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue