Enhance Path Quality Assessment and Slot Management Features
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 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m13s
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 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m13s
- Added new functions for computing assignment quality scores and counting step assignment statistics, improving the evaluation of steps in path quality assessments. - Updated existing methods to incorporate the new scoring logic, enhancing the robustness of path evaluations. - Introduced UI components in the frontend to display detailed quality assessment results, including handling of split dimensions in path evaluations. - Enhanced tests to cover new functionalities and ensure accuracy in quality scoring and slot management processes.
This commit is contained in:
1 parent
7265cd5a01
commit
313d613b7c
8 files changed
+427
-55
No files matched your search
@@ -2,6 +2,7 @@
|
||||
from planning_exercise_path_builder import (
|
||||
_parse_slot_refs_from_text,
|
||||
_problematic_slots_from_path_qa,
|
||||
_slot_auto_select_ai,
|
||||
_slot_auto_select_library,
|
||||
_slot_suggestion_accepted,
|
||||
)
|
||||
@@ -113,6 +114,27 @@ def test_slot_auto_select_requires_higher_score():
|
||||
)
|
||||
|
||||
|
||||
def test_slot_auto_select_empty_slot_requires_good_fit():
|
||||
assert not _slot_auto_select_library(
|
||||
baseline_slot_score=None,
|
||||
proposed_slot_score=0.35,
|
||||
baseline_exercise_id=None,
|
||||
proposed_exercise_id=2,
|
||||
)
|
||||
assert _slot_auto_select_library(
|
||||
baseline_slot_score=None,
|
||||
proposed_slot_score=0.55,
|
||||
baseline_exercise_id=None,
|
||||
proposed_exercise_id=2,
|
||||
)
|
||||
|
||||
|
||||
def test_slot_auto_select_ai_when_library_not_selected():
|
||||
assert _slot_auto_select_ai(library_auto_select=False, has_ai=True)
|
||||
assert not _slot_auto_select_ai(library_auto_select=True, has_ai=True)
|
||||
assert not _slot_auto_select_ai(library_auto_select=False, has_ai=False)
|
||||
|
||||
|
||||
def test_off_topic_slot_gap_spec_for_filled_slot():
|
||||
from planning_exercise_path_builder import _build_off_topic_slot_gap_spec
|
||||
|
||||
|
||||
Reference in new issue
Block a user