mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
21.0.1 mapper coalesces omitted cfl_fixed_lighting_bulbs_count to 0 🟥
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a01a940df2
commit
d36fa2b5cd
1 changed files with 9 additions and 0 deletions
|
|
@ -440,6 +440,15 @@ class TestFromRdSapSchema21_0_1:
|
|||
|
||||
assert result.open_chimneys_count == 0
|
||||
|
||||
def test_omitted_cfl_fixed_lighting_bulbs_count_defaults_to_zero_not_none(self) -> None:
|
||||
data = load("21_0_1.json")
|
||||
data.pop("cfl_fixed_lighting_bulbs_count", None)
|
||||
schema = from_dict(RdSapSchema21_0_1, data)
|
||||
|
||||
result = EpcPropertyDataMapper.from_rdsap_schema_21_0_1(schema)
|
||||
|
||||
assert result.cfl_fixed_lighting_bulbs_count == 0
|
||||
|
||||
def test_uprn(self, result: EpcPropertyData) -> None:
|
||||
assert result.uprn == 12457
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue