Skip to content

Commit

Permalink
Amend tests as questions without free-text shouldn't have themes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmenezes0 committed Apr 4, 2024
1 parent 84124e7 commit fdd0ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/test_responses_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fdd0ad5

Please sign in to comment.