fix: update tests to match current algorithm — thresholds, _best_climb tuples, ComputedMetrics fields
CI / Python tests (push) Waiting to run
CI / Frontend build (push) Waiting to run

This commit is contained in:
Davide Scaini
2026-06-03 22:18:17 +02:00
parent f167c6eed7
commit 060bdf5114
4 changed files with 36 additions and 29 deletions
+3
View File
@@ -70,6 +70,7 @@ def _dummy_metrics(**overrides):
avg_cadence_rpm=None, avg_power_w=None, np_power_w=None, max_power_w=None,
bbox=None, start_latlng=None, end_latlng=None,
mmp=None, best_efforts=None, best_climb_m=None,
climbing_vam_mh=None, climbing_time_s=None,
)
defaults.update(overrides)
return ComputedMetrics(**defaults)
@@ -216,6 +217,8 @@ def test_build_summary_required_fields():
mmp=None,
best_efforts=None,
best_climb_m=None,
climbing_vam_mh=None,
climbing_time_s=None,
)
summary = build_summary(act, metrics, "2024-06-01T073012Z-test-ride")
# Required fields per schema