From 8be92c165449bdfdd2fb2396e671d95a8fb8acf2 Mon Sep 17 00:00:00 2001 From: Guille Date: Wed, 20 Mar 2024 12:37:35 +0100 Subject: [PATCH] correct path --- setup.py | 2 -- tests/test_db_factory.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 14780e5..0e9e037 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,5 @@ setup( install_requires=install_requires, data_files=[ ('cerc_persistence', glob.glob('requirements.txt')), - ('cerc_persistence/tests/test_data', glob.glob('test.geojson')), - ('cerc_persistence/tests/test_output', glob.glob('.gitignore')), ], ) diff --git a/tests/test_db_factory.py b/tests/test_db_factory.py index ccf3577..75fe3c4 100644 --- a/tests/test_db_factory.py +++ b/tests/test_db_factory.py @@ -61,9 +61,9 @@ class Control: City.__table__.create(bind=engine, checkfirst=True) CityObject.__table__.create(bind=engine, checkfirst=True) SimulationResults.__table__.create(bind=engine, checkfirst=True) - - city_file = Path('tests_data/test.geojson').resolve() - output_path = Path('tests_outputs/').resolve() + example_path = (Path(__file__).parent / 'tests_data').resolve() + city_file = (example_path / 'test.geojson').resolve() + output_path = (Path(__file__).parent / 'tests_outputs').resolve() self._city = GeometryFactory('geojson', city_file, height_field='citygml_me',