diff --git a/tests/integration/test_responses_pages.py b/tests/integration/test_responses_pages.py index 538f7c0dc..05717392d 100644 --- a/tests/integration/test_responses_pages.py +++ b/tests/integration/test_responses_pages.py @@ -27,8 +27,9 @@ def test_get_question_responses_page(django_app): answer_loop_range = min(4, len(answers)) for i in range(answer_loop_range): assert f"{answers[i].free_text}" in page_content - assert f"{answers[i].theme.label}" in page_content assert f"{answers[i].multiple_choice_responses}" in page_content + if answers[i].free_text: + assert f"{answers[i].theme.label}" in page_content # Opinions should appear in filter select-box for option in question.multiple_choice_options: