diff --git a/mondey_backend/src/mondey_backend/routers/admin_routers/milestones.py b/mondey_backend/src/mondey_backend/routers/admin_routers/milestones.py index 8f6fd20f..a8f5c244 100644 --- a/mondey_backend/src/mondey_backend/routers/admin_routers/milestones.py +++ b/mondey_backend/src/mondey_backend/routers/admin_routers/milestones.py @@ -16,13 +16,13 @@ from ...models.milestones import MilestoneGroupAdmin from ...models.milestones import MilestoneGroupText from ...models.milestones import MilestoneImage -from ...models.utils import ItemOrder from ...models.milestones import MilestoneText +from ...models.utils import ItemOrder from ...settings import app_settings from ..utils import add -from ..utils import update_item_orders from ..utils import calculate_milestone_age_scores from ..utils import get +from ..utils import update_item_orders from ..utils import update_milestone_group_text from ..utils import update_milestone_text from ..utils import write_file diff --git a/mondey_backend/src/mondey_backend/routers/admin_routers/questions.py b/mondey_backend/src/mondey_backend/routers/admin_routers/questions.py index 6f40423f..3fe452b1 100644 --- a/mondey_backend/src/mondey_backend/routers/admin_routers/questions.py +++ b/mondey_backend/src/mondey_backend/routers/admin_routers/questions.py @@ -11,12 +11,12 @@ from ...models.questions import ChildQuestionText from ...models.questions import UserQuestion from ...models.questions import UserQuestionAdmin -from ...models.utils import ItemOrder from ...models.questions import UserQuestionText +from ...models.utils import ItemOrder from ..utils import add -from ..utils import update_item_orders from ..utils import get from ..utils import update_child_question_text +from ..utils import update_item_orders from ..utils import update_user_question_text diff --git a/mondey_backend/tests/routers/test_questions.py b/mondey_backend/tests/routers/test_questions.py index 5e28a948..3e6c616d 100644 --- a/mondey_backend/tests/routers/test_questions.py +++ b/mondey_backend/tests/routers/test_questions.py @@ -1,5 +1,5 @@ -from fastapi.testclient import TestClient import pytest +from fastapi.testclient import TestClient def test_get_child_questions(user_client: TestClient): @@ -13,6 +13,7 @@ def test_get_user_questions(user_client: TestClient): assert response.status_code == 200 assert len(response.json()) == 2 + @pytest.mark.parametrize("entity", ["child-questions", "user-questions"]) @pytest.mark.parametrize( ("order_items", "ids_in_order"),