Commit d193e658 authored by Eric Duminil's avatar Eric Duminil
Browse files

Added tests with PVGIS

parent 6e40942d
......@@ -38,6 +38,20 @@ def test_pv_no_shadow(simstadt_folder):
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.slow
def test_pv_more_modules(simstadt_folder):
......@@ -159,6 +173,23 @@ def test_heatdemand_heating_and_cooling(simstadt_folder):
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.slow
def test_heatdemand_shadow_increases_heating(simstadt_folder):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment