mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Fixed lighting unit tests
This commit is contained in:
parent
39b083cee9
commit
f1c59157ed
1 changed files with 5 additions and 7 deletions
|
|
@ -5,13 +5,11 @@ from model_data.epc_attributes.LightingAttributes import LightingAttributes
|
||||||
|
|
||||||
# An example averages dataset to use in tests. It is a dictionary where the key is a lighting description and the
|
# An example averages dataset to use in tests. It is a dictionary where the key is a lighting description and the
|
||||||
# value is the expected proportion.
|
# value is the expected proportion.
|
||||||
averages = pd.DataFrame(
|
averages = [
|
||||||
[
|
{"lighting-description": "good lighting efficiency", "low-energy-lighting": 0.75},
|
||||||
{"lighting-description": "good lighting efficiency", "low-energy-lighting": 0.75},
|
{"lighting-description": "excellent lighting efficiency", "low-energy-lighting": 1.0},
|
||||||
{"lighting-description": "excellent lighting efficiency", "low-energy-lighting": 1.0},
|
{"lighting-description": "below average lighting efficiency", "low-energy-lighting": 0.25}
|
||||||
{"lighting-description": "below average lighting efficiency", "low-energy-lighting": 0.25}
|
]
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class TestLightingAttributes:
|
class TestLightingAttributes:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue