Update version to 0.8.217 and enhance Exercise Progression Path Builder with planning roadmap features
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 43s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m15s
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 43s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m15s
- Incremented application version to 0.8.217 to reflect recent changes. - Added support for a planning roadmap in the Exercise Progression Path Builder, allowing users to save and load structured planning artifacts. - Enhanced the persistence logic for the planning roadmap, ensuring updates are correctly handled during graph modifications. - Improved the user interface to display saved planning hints, enriching the user experience and interaction with the progression graphs.
This commit is contained in:
1 parent
98b279fa89
commit
5692931d07
6 files changed
+268
-11
No files matched your search
@@ -0,0 +1,36 @@
|
||||
"""Tests Planungs-Artefakt am Progressionsgraph."""
|
||||
import pytest
|
||||
|
||||
from progression_graph_planning_artifact import (
|
||||
ARTIFACT_SCHEMA_VERSION,
|
||||
normalize_planning_roadmap_payload,
|
||||
)
|
||||
|
||||
|
||||
def test_normalize_planning_roadmap_minimal():
|
||||
out = normalize_planning_roadmap_payload(
|
||||
{
|
||||
"schema_version": ARTIFACT_SCHEMA_VERSION,
|
||||
"goal_query": "Mae Geri Perfektion",
|
||||
"max_steps": 5,
|
||||
}
|
||||
)
|
||||
assert out["goal_query"] == "Mae Geri Perfektion"
|
||||
assert out["max_steps"] == 5
|
||||
|
||||
|
||||
def test_normalize_planning_roadmap_with_progression_roadmap():
|
||||
out = normalize_planning_roadmap_payload(
|
||||
{
|
||||
"goal_query": "Kumite Beinarbeit",
|
||||
"progression_roadmap": {
|
||||
"stage_specs": [{"major_step_index": 0, "learning_goal": "Grundstellung"}],
|
||||
},
|
||||
}
|
||||
)
|
||||
assert out["progression_roadmap"]["stage_specs"][0]["learning_goal"] == "Grundstellung"
|
||||
|
||||
|
||||
def test_normalize_rejects_invalid_type():
|
||||
with pytest.raises(ValueError, match="JSON-Objekt"):
|
||||
normalize_planning_roadmap_payload("not-json")
|
||||
Reference in new issue
Block a user