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',