Update Dockerfile and requirements for improved dependency management
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m18s

- Added `tzdata` installation in the Dockerfile to support time zone handling in Linux environments.
- Increased `PIP_DEFAULT_TIMEOUT` and added retry logic for pip installations to enhance reliability during dependency installation.
- Updated `requirements.txt` to conditionally include `tzdata` for Windows platforms, ensuring compatibility across different operating systems.
This commit is contained in:
Lars committed 2026-06-11 11:48:25 +02:00
1 parent 8f1dad53ab
commit 480890d0c6
10 files changed
+492 -18

No files matched your search

@@ -1,7 +1,9 @@
"""Tests Planungs-KI Phase D — planning_context für suggestExerciseAi."""
from planning_exercise_form_context import (
build_progression_entry_state,
build_progression_gap_snapshot,
build_progression_path_gap_planning_context,
enrich_gap_snapshot_with_entry_state,
planning_context_prompt_variables,
sanitize_planning_context_for_ai,
)
@@ -80,6 +82,47 @@ def test_gap_planning_context_carries_snapshot_fields():
assert ctx["stage_learning_goal"] == "Stufenziel"
def test_build_progression_entry_state_from_prior_steps():
entry = build_progression_entry_state(
major_step_index=2,
prior_steps=[
{
"roadmap_major_step_index": 0,
"title": "Schritt-Stand",
"roadmap_phase": "einstieg",
"success_criteria": ["stabile Grundstellung"],
},
{
"roadmap_major_step_index": 1,
"title": "Mawashi Vorbereitung",
"roadmap_target_state": "Hüfte dreht vor dem Knie",
"roadmap_phase": "grundlage",
},
],
start_situation="Anfänger ohne Kumite-Erfahrung",
current_stage_start="Hüfte dreht vor dem Knie, sicherer Stand",
)
assert entry["entry_state"] == "Hüfte dreht vor dem Knie, sicherer Stand"
assert "Mawashi Vorbereitung" in entry["entry_state_detail"]
assert "stabile Grundstellung" in entry["prior_achievements"][0]
def test_enrich_gap_snapshot_with_entry_state():
snap = enrich_gap_snapshot_with_entry_state(
{"start_situation": "Basis", "stage_learning_goal": "Rhythmen"},
steps=[
{
"roadmap_major_step_index": 0,
"title": "A",
"success_criteria": ["Timing erkannt"],
}
],
major_step_index=1,
)
assert snap["entry_state"] == "Timing erkannt"
assert snap["prior_steps"][0]["title"] == "A"
def test_gap_planning_context_trainer_supplements_and_stage_override():
ctx = build_progression_path_gap_planning_context(
goal_query="Kumite",