Commit 736af6a9 authored by Eric Duminil's avatar Eric Duminil
Browse files

Check if correct weather DB

parent 45db7ab3
......@@ -39,6 +39,7 @@ def test_pv_no_shadow(simstadt_folder):
assert "Roof area for PV" in kpis
assert abs(kpis["PV specific yield"].value - 1_100) < 200
assert isinstance(results, PhotovoltaicResults)
assert 'meteonorm' in results.get_unique_by_extension('.prn').name
@pytest.mark.integration
......@@ -53,6 +54,7 @@ def test_pv_with_pvgis(simstadt_folder):
kpis = to_dict(results.kpis)
assert "PV potential yield" in kpis
assert "Roof area for PV" in kpis
assert 'pvgis' in results.get_unique_by_extension('.prn').name
@pytest.mark.integration
......@@ -161,37 +163,36 @@ def test_pv_trees_reduce_yield(simstadt_folder):
@pytest.mark.integration
@pytest.mark.slow
def test_heatdemand_heating_and_cooling(simstadt_folder):
kpis = to_dict(
heatdemand_simulation(
MINI,
METEONORM,
with_shadows=False,
calculation_mode="HEATING_AND_COOLING",
project_path=PROJECT_PATH,
).kpis
results = heatdemand_simulation(
MINI,
METEONORM,
with_shadows=False,
calculation_mode="HEATING_AND_COOLING",
project_path=PROJECT_PATH,
)
kpis = to_dict(results.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
assert isinstance(results, HeatDemandResults)
assert 'meteonorm' in results.get_unique_by_extension('.prn').name
@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
results = heatdemand_simulation(
MINI,
with_shadows=False,
calculation_mode="HEATING",
project_path=PROJECT_PATH,
)
kpis = to_dict(results.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
assert 'pvgis' in results.get_unique_by_extension('.prn').name
@pytest.mark.integration
......
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