mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
extract cylinder thermostat 🟥
This commit is contained in:
parent
6035c90bcb
commit
0e69f8e7a5
2 changed files with 16 additions and 0 deletions
|
|
@ -574,6 +574,20 @@ class TestRenewables:
|
|||
)
|
||||
|
||||
|
||||
class TestRenewablesPvConnection:
|
||||
@pytest.fixture
|
||||
def renewables(self) -> Renewables:
|
||||
return PasHubRdSapSiteNotesExtractor(
|
||||
load_text_fixture_3()
|
||||
).extract_renewables()
|
||||
|
||||
def test_pv_connection(self, renewables: Renewables) -> None:
|
||||
assert renewables.pv_connection == "Connected to dwellings electricity meter"
|
||||
|
||||
def test_percent_roof_covered_pv(self, renewables: Renewables) -> None:
|
||||
assert renewables.percent_roof_covered_pv == 45
|
||||
|
||||
|
||||
class TestRoomCountElements:
|
||||
@pytest.fixture
|
||||
def rce(self) -> RoomCountElements:
|
||||
|
|
|
|||
|
|
@ -229,6 +229,8 @@ class Renewables:
|
|||
photovoltaic_array: bool
|
||||
number_of_pv_batteries: int
|
||||
hydro: bool
|
||||
pv_connection: Optional[str] = None
|
||||
percent_roof_covered_pv: Optional[int] = None
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue