mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
map elmhurst energy fields to epc property data class 🟥
This commit is contained in:
parent
7a68fbcae9
commit
00821c5c23
1 changed files with 18 additions and 12 deletions
|
|
@ -5,18 +5,7 @@ from datetime import date
|
|||
import pytest
|
||||
|
||||
from backend.documents_parser.elmhurst_extractor import ElmhurstSiteNotesExtractor
|
||||
from datatypes.epc.domain.epc_property_data import (
|
||||
EpcPropertyData,
|
||||
MainHeatingDetail,
|
||||
SapBuildingPart,
|
||||
SapEnergySource,
|
||||
SapFloorDimension,
|
||||
SapHeating,
|
||||
SapVentilation,
|
||||
SapWindow,
|
||||
ShowerOutlet,
|
||||
ShowerOutlets,
|
||||
)
|
||||
from datatypes.epc.domain.epc_property_data import EpcPropertyData
|
||||
from datatypes.epc.domain.mapper import EpcPropertyDataMapper
|
||||
|
||||
FIXTURE_PATH = os.path.join(
|
||||
|
|
@ -309,3 +298,20 @@ class TestDraughtproofingAndWater:
|
|||
|
||||
def test_any_unheated_rooms_false(self, result: EpcPropertyData) -> None:
|
||||
assert result.any_unheated_rooms is False
|
||||
|
||||
|
||||
class TestEnergyPerformance:
|
||||
def test_energy_rating_current(self, result: EpcPropertyData) -> None:
|
||||
assert result.energy_rating_current == 69
|
||||
|
||||
def test_energy_rating_potential(self, result: EpcPropertyData) -> None:
|
||||
assert result.energy_rating_potential == 77
|
||||
|
||||
def test_environmental_impact_current(self, result: EpcPropertyData) -> None:
|
||||
assert result.environmental_impact_current == 76
|
||||
|
||||
def test_environmental_impact_potential(self, result: EpcPropertyData) -> None:
|
||||
assert result.environmental_impact_potential == 81
|
||||
|
||||
def test_co2_emissions_current(self, result: EpcPropertyData) -> None:
|
||||
assert result.co2_emissions_current == 1.683
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue