From f62be97204fb90d5355cb2dd27a598c3edfb02d2 Mon Sep 17 00:00:00 2001 From: juuso-j Date: Fri, 15 Mar 2024 11:31:55 +0200 Subject: [PATCH] Test number of option in question5 --- profiles/tests/test_import_questions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/tests/test_import_questions.py b/profiles/tests/test_import_questions.py index f0a77ce..7c5f60e 100644 --- a/profiles/tests/test_import_questions.py +++ b/profiles/tests/test_import_questions.py @@ -72,6 +72,8 @@ def test_import_questions(): assert sq_auto_4_5_results[0] == autoilija assert sq_auto_4_5_results[1].topic_en == "Habit traveler" + assert Question.objects.get(number="5").options.count() == 20 + sq_walk = sub_q_qs.get(order_number=6) sq_walk.description_sv == "GĂ„ende" assert Option.objects.filter(sub_question=sq_walk).count() == 5