From abfb48452f69541481ce3539fc3ea64986ba2ae3 Mon Sep 17 00:00:00 2001 From: daniel-jakob Date: Sun, 21 Jan 2024 12:23:30 +0000 Subject: [PATCH] Add imports and test functions for algorithms, fix sys.path --- germany_beer_map/tests/test_algoritms.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/germany_beer_map/tests/test_algoritms.py b/germany_beer_map/tests/test_algoritms.py index 5c09a64..9a58ddd 100644 --- a/germany_beer_map/tests/test_algoritms.py +++ b/germany_beer_map/tests/test_algoritms.py @@ -1,6 +1,12 @@ import numpy as np import pytest +import sys +import os +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) + from germany_beer_map.src.algorithms.scaling import scale_contour, calculate_centroid, translate_contour, calculate_mse +from germany_beer_map.src.algorithms.spatial_dist_min import haversine +from germany_beer_map.src.algorithms.geocode import convert_address_to_coords def test_scale_contour(): contour = np.array([[1, 1], [2, 2]])