mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Added test for no data in mainheat controls
This commit is contained in:
parent
7d30978caa
commit
2c17b983d0
1 changed files with 20 additions and 0 deletions
|
|
@ -35,3 +35,23 @@ class TestMainHeatControlAttributes:
|
|||
for description in invalid_descriptions:
|
||||
with pytest.raises(ValueError):
|
||||
MainheatControlAttributes(description).process()
|
||||
|
||||
def test_process_with_no_data(self):
|
||||
# Create an instance of MainheatControlAttributes with no description
|
||||
attributes = MainheatControlAttributes(description="")
|
||||
|
||||
# Call the process method
|
||||
result = attributes.process()
|
||||
|
||||
# Assert that the result matches the expected dictionary
|
||||
assert result == {
|
||||
"thermostatic_control": False,
|
||||
"charging_system": False,
|
||||
"switch_system": False,
|
||||
"no_control": False,
|
||||
"dhw_control": False,
|
||||
"community_heating": False,
|
||||
"multiple_room_thermostats": False,
|
||||
"auxiliary_systems": False,
|
||||
"trvs": False
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue