mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
corrected tests
This commit is contained in:
parent
dd5b8db1d5
commit
3f2992bcb0
2 changed files with 1 additions and 5 deletions
|
|
@ -78,6 +78,7 @@ def handler():
|
|||
# https://docs.google.com/spreadsheets/d/1ek9ItDv7xHwFm_FK6B0PyOBwvi6U4qRPuncBsVlCHUA/edit#gid=0
|
||||
cleaner.cleaned.keys()
|
||||
floors = pd.DataFrame(cleaner.cleaned['floor-description'])
|
||||
walls = pd.DataFrame(cleaner.cleaned['walls-description'])
|
||||
hotwater = pd.DataFrame(cleaner.cleaned['hotwater-description'])
|
||||
mainheat = pd.DataFrame(cleaner.cleaned["mainheat-description"])
|
||||
|
||||
|
|
|
|||
|
|
@ -11,10 +11,6 @@ class TestMainHeatControlAttributes:
|
|||
attr = MainheatControlAttributes(valid_description)
|
||||
assert attr.description == valid_description.lower()
|
||||
|
||||
# Test initialization with an empty description
|
||||
with pytest.raises(ValueError):
|
||||
MainheatControlAttributes('')
|
||||
|
||||
# Test initialization with a description that contains none of the keywords
|
||||
with pytest.raises(ValueError):
|
||||
MainheatControlAttributes('description without keywords')
|
||||
|
|
@ -32,7 +28,6 @@ class TestMainHeatControlAttributes:
|
|||
def test_invalid_description(self):
|
||||
# Test that invalid descriptions raise a ValueError
|
||||
invalid_descriptions = [
|
||||
"",
|
||||
"invalid description",
|
||||
"description with no known heating control types",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue