From a884b9ee14b0027533eb04ecb72cd35cbd61edf9 Mon Sep 17 00:00:00 2001 From: kilian Date: Sun, 19 Oct 2025 22:09:56 +0200 Subject: [PATCH] removed leftover decorator from before testing rework --- backend/src/tests/test_utils.py | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/backend/src/tests/test_utils.py b/backend/src/tests/test_utils.py index 8b283f9..aeb45fd 100644 --- a/backend/src/tests/test_utils.py +++ b/backend/src/tests/test_utils.py @@ -94,34 +94,3 @@ def log_trip_details(request, landmarks: list[Landmark], duration: int, target_d request.node.trip_details = trip_string request.node.trip_duration = str(duration) # result['total_time'] request.node.target_duration = str(target_duration) - - - - -def trip_params( - sightseeing: int, - shopping: int, - nature: int, - max_time_minute: int, - start_coords: tuple[float, float] = None, - end_coords: tuple[float, float] = None, -): - def decorator(test_func): - @wraps(test_func) - def wrapper(client, request): - prefs = Preferences( - sightseeing=Preference(type='sightseeing', score=sightseeing), - shopping=Preference(type='shopping', score=shopping), - nature=Preference(type='nature', score=nature), - max_time_minute=max_time_minute, - detour_tolerance_minute=0, - ) - - start = start_coords - end = end_coords - - # Inject into test function - return test_func(client, request, prefs, start, end) - - return wrapper - return decorator \ No newline at end of file