mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Fixed property tests
This commit is contained in:
parent
c0d693c5ed
commit
d0f55b2e7d
2 changed files with 16 additions and 7 deletions
|
|
@ -18,6 +18,7 @@ class Property(BaseUtility):
|
||||||
"roof-description": "roof",
|
"roof-description": "roof",
|
||||||
"walls-description": "walls",
|
"walls-description": "walls",
|
||||||
"windows-description": "windows",
|
"windows-description": "windows",
|
||||||
|
"lighting-description": "lighting"
|
||||||
}
|
}
|
||||||
|
|
||||||
floor = None
|
floor = None
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,8 @@ mock_epc_response = {
|
||||||
"windows-description": "Windows Description",
|
"windows-description": "Windows Description",
|
||||||
"mainheat-description": "Main Heating Description",
|
"mainheat-description": "Main Heating Description",
|
||||||
"hotwater-description": "Hot Water Description",
|
"hotwater-description": "Hot Water Description",
|
||||||
"transaction-type": "rental"
|
"transaction-type": "rental",
|
||||||
|
"lighting-description": "Good Lighting Efficiency",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"inspection-date": "2023-05-01",
|
"inspection-date": "2023-05-01",
|
||||||
|
|
@ -27,7 +28,8 @@ mock_epc_response = {
|
||||||
"windows-description": "Windows Description",
|
"windows-description": "Windows Description",
|
||||||
"mainheat-description": "Main Heating Description",
|
"mainheat-description": "Main Heating Description",
|
||||||
"hotwater-description": "Hot Water Description",
|
"hotwater-description": "Hot Water Description",
|
||||||
"transaction-type": "rental"
|
"transaction-type": "rental",
|
||||||
|
"lighting-description": "Good Lighting Efficiency",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -38,21 +40,24 @@ mock_epc_response_dupe = {
|
||||||
'inspection-date': '2023-06-01', 'some-other-key': 'some-value', 'roof-description': 'Roof Description',
|
'inspection-date': '2023-06-01', 'some-other-key': 'some-value', 'roof-description': 'Roof Description',
|
||||||
'walls-description': 'Walls Description', 'windows-description': 'Windows Description',
|
'walls-description': 'Walls Description', 'windows-description': 'Windows Description',
|
||||||
'mainheat-description': 'Main Heating Description', 'hotwater-description': 'Hot Water Description',
|
'mainheat-description': 'Main Heating Description', 'hotwater-description': 'Hot Water Description',
|
||||||
"transaction-type": "rental"
|
"transaction-type": "rental",
|
||||||
|
"lighting-description": "Good Lighting Efficiency",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'inspection-date': '2023-05-01', 'some-other-key': 'some-other-value',
|
'inspection-date': '2023-05-01', 'some-other-key': 'some-other-value',
|
||||||
'roof-description': 'Roof Description', 'walls-description': 'Walls Description',
|
'roof-description': 'Roof Description', 'walls-description': 'Walls Description',
|
||||||
'windows-description': 'Windows Description', 'mainheat-description': 'Main Heating Description',
|
'windows-description': 'Windows Description', 'mainheat-description': 'Main Heating Description',
|
||||||
'hotwater-description': 'Hot Water Description',
|
'hotwater-description': 'Hot Water Description',
|
||||||
"transaction-type": "rental"
|
"transaction-type": "rental",
|
||||||
|
"lighting-description": "Good Lighting Efficiency",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'inspection-date': '2023-06-01', 'some-other-key': 'duplicate-date',
|
'inspection-date': '2023-06-01', 'some-other-key': 'duplicate-date',
|
||||||
'roof-description': 'Roof Description',
|
'roof-description': 'Roof Description',
|
||||||
'walls-description': 'Walls Description', 'windows-description': 'Windows Description',
|
'walls-description': 'Walls Description', 'windows-description': 'Windows Description',
|
||||||
'mainheat-description': 'Main Heating Description', 'hotwater-description': 'Hot Water Description',
|
'mainheat-description': 'Main Heating Description', 'hotwater-description': 'Hot Water Description',
|
||||||
"transaction-type": "rental"
|
"transaction-type": "rental",
|
||||||
|
"lighting-description": "Good Lighting Efficiency",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -99,14 +104,17 @@ class TestProperty:
|
||||||
{"walls-description": "Walls Description"},
|
{"walls-description": "Walls Description"},
|
||||||
{"windows-description": "Windows Description"},
|
{"windows-description": "Windows Description"},
|
||||||
{"mainheat-description": "Main Heating Description"},
|
{"mainheat-description": "Main Heating Description"},
|
||||||
{"hotwater-description": "Hot Water Description"}
|
{"hotwater-description": "Hot Water Description"},
|
||||||
|
{"lighting-description": "Good Lighting Efficiency"},
|
||||||
|
{"low-energy-lighting": 0}
|
||||||
]))
|
]))
|
||||||
mock_cleaner.cleaned = {
|
mock_cleaner.cleaned = {
|
||||||
"roof-description": [{"original_description": "Roof Description"}],
|
"roof-description": [{"original_description": "Roof Description"}],
|
||||||
"walls-description": [{"original_description": "Walls Description"}],
|
"walls-description": [{"original_description": "Walls Description"}],
|
||||||
"windows-description": [{"original_description": "Windows Description"}],
|
"windows-description": [{"original_description": "Windows Description"}],
|
||||||
"mainheat-description": [{"original_description": "Main Heating Description"}],
|
"mainheat-description": [{"original_description": "Main Heating Description"}],
|
||||||
"hotwater-description": [{"original_description": "Hot Water Description"}]
|
"hotwater-description": [{"original_description": "Hot Water Description"}],
|
||||||
|
"lighting-description": [{"original_description": "Good Lighting Efficiency"}]
|
||||||
}
|
}
|
||||||
return mock_cleaner
|
return mock_cleaner
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue