correct path

This commit is contained in:
Guille 2024-03-20 12:37:35 +01:00
parent 5e47429b1c
commit 8be92c1654
2 changed files with 3 additions and 5 deletions

View File

@ -37,7 +37,5 @@ setup(
install_requires=install_requires, install_requires=install_requires,
data_files=[ data_files=[
('cerc_persistence', glob.glob('requirements.txt')), ('cerc_persistence', glob.glob('requirements.txt')),
('cerc_persistence/tests/test_data', glob.glob('test.geojson')),
('cerc_persistence/tests/test_output', glob.glob('.gitignore')),
], ],
) )

View File

@ -61,9 +61,9 @@ class Control:
City.__table__.create(bind=engine, checkfirst=True) City.__table__.create(bind=engine, checkfirst=True)
CityObject.__table__.create(bind=engine, checkfirst=True) CityObject.__table__.create(bind=engine, checkfirst=True)
SimulationResults.__table__.create(bind=engine, checkfirst=True) SimulationResults.__table__.create(bind=engine, checkfirst=True)
example_path = (Path(__file__).parent / 'tests_data').resolve()
city_file = Path('tests_data/test.geojson').resolve() city_file = (example_path / 'test.geojson').resolve()
output_path = Path('tests_outputs/').resolve() output_path = (Path(__file__).parent / 'tests_outputs').resolve()
self._city = GeometryFactory('geojson', self._city = GeometryFactory('geojson',
city_file, city_file,
height_field='citygml_me', height_field='citygml_me',