forked from s_ranjbar/city_retrofit
Partially correct unit-test
This commit is contained in:
parent
35e50cf551
commit
5afb60e7c4
|
@ -28,7 +28,7 @@ class TestEnergySystemsFactory(TestCase):
|
|||
self._example_path = (Path(__file__).parent / 'tests_data').resolve()
|
||||
self._output_path = (Path(__file__).parent / 'tests_outputs').resolve()
|
||||
city_file = (self._example_path / "C40_Final.gml").resolve()
|
||||
self._output_path = (self._output_path / "w2w_user_output.csv").resolve()
|
||||
self._output_path = (self._example_path / "w2w_user_output.csv").resolve()
|
||||
self._city = GeometryFactory('citygml', path=city_file).city
|
||||
EnergySystemsFactory('water_to_water_hp', self._city).enrich()
|
||||
|
||||
|
|
|
@ -23,8 +23,10 @@ class GreeneryInIdf(TestCase):
|
|||
GreeneryInIdf TestCase 1
|
||||
"""
|
||||
def test_greenery_in_idf(self):
|
||||
city_file = "tests_data/one_building_in_kelowna.gml"
|
||||
|
||||
self._example_path = (Path(__file__).parent / 'tests_data').resolve()
|
||||
output_path = (Path(__file__).parent / 'tests_outputs').resolve()
|
||||
city_file = (self._example_path / "one_building_in_kelowna.gml").resolve()
|
||||
city = GeometryFactory('citygml', path=city_file).city
|
||||
for building in city.buildings:
|
||||
building.year_of_construction = 2006
|
||||
|
|
|
@ -4,6 +4,7 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|||
Copyright © 2023 Concordia CERC group
|
||||
Project Coder Peter Yefi peteryefi@gmail.com
|
||||
"""
|
||||
from pathlib import Path
|
||||
from unittest import TestCase
|
||||
from hub.imports.geometry_factory import GeometryFactory
|
||||
from hub.imports.energy_systems_factory import EnergySystemsFactory
|
||||
|
@ -38,8 +39,9 @@ class TestHeatPumpResults(TestCase):
|
|||
Test setup
|
||||
:return: None
|
||||
"""
|
||||
city_file = "tests_data/C40_Final.gml"
|
||||
self._output_path = "tests_data/as_user_output.csv"
|
||||
self._example_path = (Path(__file__).parent / 'tests_data').resolve()
|
||||
self._output_path = (Path(__file__).parent / 'tests_outputs/as_user_output.csv').resolve()
|
||||
city_file = (self._example_path / "C40_Final.gml").resolve()
|
||||
self._city = GeometryFactory('citygml', path=city_file).city
|
||||
EnergySystemsFactory('air_source_hp', self._city).enrich()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user