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
acd81272
Commit
acd81272
authored
Sep 17, 2026
by
Eric Duminil
Browse files
Check instances
parent
d193e658
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_workflows.py
View file @
acd81272
...
...
@@ -8,6 +8,8 @@ from simstadt import (
greenwater_simulation
,
heatdemand_simulation
,
photovoltaic_simulation
,
HeatDemandResults
,
PhotovoltaicResults
,
)
from
simstadt.results
import
KPI
...
...
@@ -36,6 +38,7 @@ def test_pv_no_shadow(simstadt_folder):
assert
"PV potential yield"
in
kpis
assert
"Roof area for PV"
in
kpis
assert
abs
(
kpis
[
"PV specific yield"
].
value
-
1_100
)
<
200
assert
isinstance
(
results
,
PhotovoltaicResults
)
@
pytest
.
mark
.
integration
...
...
@@ -171,6 +174,7 @@ def test_heatdemand_heating_and_cooling(simstadt_folder):
assert
"Yearly Heating demand"
in
kpis
assert
"Yearly Cooling demand"
in
kpis
assert
kpis
[
"Year of construction"
].
value
>
1900
assert
isinstance
(
results
,
HeatDemandResults
)
@
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