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
d193e658
Commit
d193e658
authored
Sep 17, 2026
by
Eric Duminil
Browse files
Added tests with PVGIS
parent
6e40942d
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/test_workflows.py
View file @
d193e658
...
@@ -38,6 +38,20 @@ def test_pv_no_shadow(simstadt_folder):
...
@@ -38,6 +38,20 @@ def test_pv_no_shadow(simstadt_folder):
assert
abs
(
kpis
[
"PV specific yield"
].
value
-
1_100
)
<
200
assert
abs
(
kpis
[
"PV specific yield"
].
value
-
1_100
)
<
200
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
slow
def
test_pv_with_pvgis
(
simstadt_folder
):
results
=
photovoltaic_simulation
(
MINI
,
with_shadows
=
False
,
min_roof_insolation
=
800
,
project_path
=
PROJECT_PATH
,
)
kpis
=
to_dict
(
results
.
kpis
)
assert
"PV potential yield"
in
kpis
assert
"Roof area for PV"
in
kpis
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
slow
@
pytest
.
mark
.
slow
def
test_pv_more_modules
(
simstadt_folder
):
def
test_pv_more_modules
(
simstadt_folder
):
...
@@ -159,6 +173,23 @@ def test_heatdemand_heating_and_cooling(simstadt_folder):
...
@@ -159,6 +173,23 @@ def test_heatdemand_heating_and_cooling(simstadt_folder):
assert
kpis
[
"Year of construction"
].
value
>
1900
assert
kpis
[
"Year of construction"
].
value
>
1900
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
slow
def
test_heatdemand_with_pvgis
(
simstadt_folder
):
kpis
=
to_dict
(
heatdemand_simulation
(
MINI
,
with_shadows
=
False
,
calculation_mode
=
"HEATING"
,
project_path
=
PROJECT_PATH
,
).
kpis
)
assert
"Heated area"
in
kpis
assert
"Yearly Heating demand"
in
kpis
assert
"Yearly Cooling demand"
in
kpis
assert
kpis
[
"Year of construction"
].
value
>
1900
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
integration
@
pytest
.
mark
.
slow
@
pytest
.
mark
.
slow
def
test_heatdemand_shadow_increases_heating
(
simstadt_folder
):
def
test_heatdemand_shadow_increases_heating
(
simstadt_folder
):
...
...
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