diff --git a/mondey_backend/tests/routers/test_users.py b/mondey_backend/tests/routers/test_users.py index d16ba7ca..dd0e5c1c 100644 --- a/mondey_backend/tests/routers/test_users.py +++ b/mondey_backend/tests/routers/test_users.py @@ -355,7 +355,7 @@ def test_update_current_child_answers_no_prexisting( def test_get_summary_feedback_for_session(user_client: TestClient): response = user_client.get("/users/feedback/answersession=1/summary") assert response.status_code == 200 - assert response.json() == {"1": 2} + assert response.json() == {"1": 1} def test_get_summary_feedback_for_session_invalid(user_client: TestClient): @@ -366,7 +366,7 @@ def test_get_summary_feedback_for_session_invalid(user_client: TestClient): def test_get_detailed_feedback_for_session(user_client: TestClient): response = user_client.get("/users/feedback/answersession=1/detailed") assert response.status_code == 200 - assert response.json() == {"1": {"1": 2, "2": 2}} + assert response.json() == {"1": {"1": 1, "2": 1}} def test_get_detailed_feedback_for_session_invalid(user_client: TestClient): diff --git a/mondey_backend/tests/utils/test_scores.py b/mondey_backend/tests/utils/test_scores.py index 13d579ed..5d6ca73f 100644 --- a/mondey_backend/tests/utils/test_scores.py +++ b/mondey_backend/tests/utils/test_scores.py @@ -38,13 +38,13 @@ def test_compute_feedback_simple(): expected_score=1.0, ) score = 0 - assert compute_feedback_simple(dummy_scores, score) == -2 + assert compute_feedback_simple(dummy_scores, score) == -1 score = 1 assert compute_feedback_simple(dummy_scores, score) == 0 score = 3 - assert compute_feedback_simple(dummy_scores, score) == 2 + assert compute_feedback_simple(dummy_scores, score) == 1 dummy_scores = MilestoneGroupAgeScore( milestonegroup_id=1,