fixed mainheat attributes tests for init

This commit is contained in:
Khalim Conn-Kowlessar 2024-09-30 14:23:20 +01:00
parent 1f7eb8c89e
commit 0da3b7b9a8
2 changed files with 1 additions and 5 deletions

View file

@ -367,7 +367,7 @@ clean_floor_cases = [
'thermal_transmittance_unit': None, 'is_assumed': True, 'is_to_unheated_space': True, 'is_to_external_air': False,
'is_suspended': False, 'is_solid': False, 'insulation_thickness': 'none', "another_property_below": False},
{'original_description': "Average thermal transmittance 1.10 W/m+é-¦K", 'thermal_transmittance': 1.1,
'thermal_transmittance_unit': 'w/m-¦k', 'is_assumed': False,
'thermal_transmittance_unit': 'w/m-¦k', 'is_assumed': False,
'is_to_unheated_space': False, 'is_to_external_air': False, 'is_suspended': False, 'is_solid': False,
'another_property_below': False, 'insulation_thickness': None},
{

View file

@ -11,10 +11,6 @@ class TestMainHeatAttributes:
floor_attr = MainHeatAttributes(valid_description)
assert floor_attr.description == valid_description.lower()
# Test initialization with an empty description
with pytest.raises(ValueError):
MainHeatAttributes('')
# Test initialization with a description that contains none of the keywords
with pytest.raises(ValueError):
MainHeatAttributes('description without keywords')