From 5d91dfe567e90fae565abff34b1eebbabe25e8cb Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 7 Sep 2023 16:29:22 +0300 Subject: [PATCH] Debugging windows --- model_data/epc_attributes/HotWaterAttributes.py | 3 ++- model_data/epc_attributes/WindowAttributes.py | 1 + model_data/tests/test_data/test_window_attributes_cases.py | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/model_data/epc_attributes/HotWaterAttributes.py b/model_data/epc_attributes/HotWaterAttributes.py index 92ad8818..b117a9c5 100644 --- a/model_data/epc_attributes/HotWaterAttributes.py +++ b/model_data/epc_attributes/HotWaterAttributes.py @@ -95,7 +95,8 @@ class HotWaterAttributes(Definitions): WELSH_TEXT = { "ogçör brif system": "from main system", - "ogçör brif system, adfer gwres nwyon ffliw": "from main system, flue gas heat recovery" + "ogçör brif system, adfer gwres nwyon ffliw": "from main system, flue gas heat recovery", + "bwyler/cylchredydd nwy": "gas boiler/circulator" } def __init__(self, description: str): diff --git a/model_data/epc_attributes/WindowAttributes.py b/model_data/epc_attributes/WindowAttributes.py index a0985870..4fc20b03 100644 --- a/model_data/epc_attributes/WindowAttributes.py +++ b/model_data/epc_attributes/WindowAttributes.py @@ -19,6 +19,7 @@ class WindowAttributes(Definitions): WELSH_TEXT = { "gwydrau dwbl llawn": "full double glazing", + "gwydrau dwbl rhannol": "partial double glazing" } def __init__(self, description: str): diff --git a/model_data/tests/test_data/test_window_attributes_cases.py b/model_data/tests/test_data/test_window_attributes_cases.py index 41162e5f..a4c6ba64 100644 --- a/model_data/tests/test_data/test_window_attributes_cases.py +++ b/model_data/tests/test_data/test_window_attributes_cases.py @@ -37,5 +37,7 @@ windows_cases = [ {'original_description': 'Some triple glazing', 'has_glazing': True, 'glazing_coverage': 'partial', 'glazing_type': 'triple', 'no_data': False}, {'original_description': 'Gwydrau dwbl llawn', 'has_glazing': True, 'glazing_coverage': 'full', - 'glazing_type': 'double', 'no_data': False} + 'glazing_type': 'double', 'no_data': False}, + {'original_description': 'Gwydrau dwbl rhannol', 'has_glazing': True, 'glazing_coverage': 'partial', + 'glazing_type': 'double', 'no_data': False}, ]