From e2d3d29956140eff2093fc2fd6b8c46ac3d7accb Mon Sep 17 00:00:00 2001 From: kscheidecker Date: Sun, 22 Jun 2025 14:24:00 +0200 Subject: [PATCH] working split --- backend/.gitignore | 3 + backend/report.html | 8 +- backend/src/landmarks/landmarks_manager.py | 8 -- backend/src/landmarks/landmarks_routes.py | 117 +++++++++++++++ backend/src/logging_config.py | 4 +- backend/src/main.py | 57 ++------ .../src/optimization/optimization_routes.py | 135 ++++++++++++++++++ backend/src/overpass/overpass.py | 2 + backend/src/structs/proto_landmark.py | 16 --- backend/src/tests/test_main.py | 25 +--- backend/src/tests/test_trip_generation.py | 80 +++++++++++ .../{toilet_routes.py => toilets_route.py} | 0 backend/src/utils/take_most_important.py | 17 ++- 13 files changed, 369 insertions(+), 103 deletions(-) create mode 100644 backend/src/landmarks/landmarks_routes.py create mode 100644 backend/src/optimization/optimization_routes.py delete mode 100644 backend/src/structs/proto_landmark.py create mode 100644 backend/src/tests/test_trip_generation.py rename backend/src/toilets/{toilet_routes.py => toilets_route.py} (100%) diff --git a/backend/.gitignore b/backend/.gitignore index ac02d06..de1fe90 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -12,6 +12,9 @@ __pycache__/ # C extensions *.so +# Pytest reports +report.html + # Distribution / packaging .Python build/ diff --git a/backend/report.html b/backend/report.html index 7595912..247ef2a 100644 --- a/backend/report.html +++ b/backend/report.html @@ -328,7 +328,7 @@ div.media {

Backend Testing Report

-

Report generated on 21-Jun-2025 at 12:49:54 by pytest-html +

Report generated on 22-Jun-2025 at 14:22:05 by pytest-html v4.1.1

Environment

@@ -382,7 +382,7 @@ div.media {

Summary

-

2 tests took 00:00:14.

+

1 test took 00:00:11.

(Un)check the boxes to filter the results.