Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
simstadtpy
Commits
736af6a9
Commit
736af6a9
authored
Sep 17, 2026
by
Eric Duminil
Browse files
Check if correct weather DB
parent
45db7ab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_workflows.py
View file @
736af6a9
...
@@ -39,6 +39,7 @@ def test_pv_no_shadow(simstadt_folder):
...
@@ -39,6 +39,7 @@ def test_pv_no_shadow(simstadt_folder):
assert
"Roof area for PV"
in
kpis
assert
"Roof area for PV"
in
kpis
assert
abs
(
kpis
[
"PV specific yield"
].
value
-
1_100
)
<
200
assert
abs
(
kpis
[
"PV specific yield"
].
value
-
1_100
)
<
200
assert
isinstance
(
results
,
PhotovoltaicResults
)
assert
isinstance
(
results
,
PhotovoltaicResults
)
assert
'meteonorm'
in
results
.
get_unique_by_extension
(
'.prn'
).
name
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
integration
...
@@ -53,6 +54,7 @@ def test_pv_with_pvgis(simstadt_folder):
...
@@ -53,6 +54,7 @@ def test_pv_with_pvgis(simstadt_folder):
kpis
=
to_dict
(
results
.
kpis
)
kpis
=
to_dict
(
results
.
kpis
)
assert
"PV potential yield"
in
kpis
assert
"PV potential yield"
in
kpis
assert
"Roof area for PV"
in
kpis
assert
"Roof area for PV"
in
kpis
assert
'pvgis'
in
results
.
get_unique_by_extension
(
'.prn'
).
name
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
integration
...
@@ -161,37 +163,36 @@ def test_pv_trees_reduce_yield(simstadt_folder):
...
@@ -161,37 +163,36 @@ def test_pv_trees_reduce_yield(simstadt_folder):
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
slow
@
pytest
.
mark
.
slow
def
test_heatdemand_heating_and_cooling
(
simstadt_folder
):
def
test_heatdemand_heating_and_cooling
(
simstadt_folder
):
kpis
=
to_dict
(
results
=
heatdemand_simulation
(
heatdemand_simulation
(
MINI
,
MINI
,
METEONORM
,
METEONORM
,
with_shadows
=
False
,
with_shadows
=
False
,
calculation_mode
=
"HEATING_AND_COOLING"
,
calculation_mode
=
"HEATING_AND_COOLING"
,
project_path
=
PROJECT_PATH
,
project_path
=
PROJECT_PATH
,
).
kpis
)
)
kpis
=
to_dict
(
results
.
kpis
)
assert
"Heated area"
in
kpis
assert
"Heated area"
in
kpis
assert
"Yearly Heating demand"
in
kpis
assert
"Yearly Heating demand"
in
kpis
assert
"Yearly Cooling demand"
in
kpis
assert
"Yearly Cooling demand"
in
kpis
assert
kpis
[
"Year of construction"
].
value
>
1900
assert
kpis
[
"Year of construction"
].
value
>
1900
assert
isinstance
(
results
,
HeatDemandResults
)
assert
isinstance
(
results
,
HeatDemandResults
)
assert
'meteonorm'
in
results
.
get_unique_by_extension
(
'.prn'
).
name
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
slow
@
pytest
.
mark
.
slow
def
test_heatdemand_with_pvgis
(
simstadt_folder
):
def
test_heatdemand_with_pvgis
(
simstadt_folder
):
kpis
=
to_dict
(
results
=
heatdemand_simulation
(
heatdemand_simulation
(
MINI
,
MINI
,
with_shadows
=
False
,
with_shadows
=
False
,
calculation_mode
=
"HEATING"
,
calculation_mode
=
"HEATING"
,
project_path
=
PROJECT_PATH
,
project_path
=
PROJECT_PATH
,
).
kpis
)
)
kpis
=
to_dict
(
results
.
kpis
)
assert
"Heated area"
in
kpis
assert
"Heated area"
in
kpis
assert
"Yearly Heating demand"
in
kpis
assert
"Yearly Heating demand"
in
kpis
assert
"Yearly Cooling demand"
in
kpis
assert
kpis
[
"Year of construction"
].
value
>
1900
assert
kpis
[
"Year of construction"
].
value
>
1900
assert
'pvgis'
in
results
.
get_unique_by_extension
(
'.prn'
).
name
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
integration
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment