From 01e85bd38c8d6ad3d1db8a92da6b076bf65db073 Mon Sep 17 00:00:00 2001 From: Ruben Sanchez Date: Tue, 28 Nov 2023 13:15:27 -0500 Subject: [PATCH] change tests_data path to be relative to the src folder --- tests/test_db_factory.py | 6 +++--- tests/test_db_retrieve.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_db_factory.py b/tests/test_db_factory.py index d0d44d5..a91a0c2 100644 --- a/tests/test_db_factory.py +++ b/tests/test_db_factory.py @@ -71,8 +71,8 @@ class Control: CityObject.__table__.create(bind=repository.engine, checkfirst=True) SimulationResults.__table__.create(bind=repository.engine, checkfirst=True) - city_file = Path('tests_data/test.geojson').resolve() - output_path = Path('tests_outputs/').resolve() + city_file = Path('tests/tests_data/test.geojson').resolve() + output_path = Path('tests/tests_outputs/').resolve() self._city = GeometryFactory('geojson', city_file, height_field='citygml_me', @@ -114,7 +114,7 @@ class Control: ) self._user_id = self._database.create_user('test', self._application_id, 'test', UserRoles.Admin) - self._pickle_path = Path('tests_data/pickle_path.bz2').resolve() + self._pickle_path = Path('tests/tests_data/pickle_path.bz2').resolve() @property def database(self): diff --git a/tests/test_db_retrieve.py b/tests/test_db_retrieve.py index d30228c..4795b2e 100644 --- a/tests/test_db_retrieve.py +++ b/tests/test_db_retrieve.py @@ -57,7 +57,7 @@ class Control: self._application_uuid = '60b7fc1b-f389-4254-9ffd-22a4cf32c7a3' self._application_id = 1 self._user_id = 1 - self._pickle_path = 'tests_data/pickle_path.bz2' + self._pickle_path = 'tests/tests_data/pickle_path.bz2' @property def database(self):