diff --git a/tests/questionpy_sdk/webserver/test_question_ui.py b/tests/questionpy_sdk/webserver/test_question_ui.py index 0050727..2ac61f8 100644 --- a/tests/questionpy_sdk/webserver/test_question_ui.py +++ b/tests/questionpy_sdk/webserver/test_question_ui.py @@ -320,7 +320,7 @@ def test_should_replace_shuffled_index(renderer: QuestionUIRenderer) -> None: @pytest.mark.render_params( xml="""
- Text + 2 Content Normal Content @@ -365,10 +365,10 @@ def test_errors_should_be_collected(renderer: QuestionUIRenderer) -> None:
""" html, errors = renderer.render() - assert len(errors) == 3 + assert len(errors) == 10 invalid_attribute_error_message = re.compile( - r"Invalid value .+unknown.+ for attribute .+qpy:feedback.+ on element " r".+span.+. Expected one of \[.+]." + r"Invalid value .+unknown.+ for attribute .+qpy:feedback.+ on element " r".+span.+." ) expected_errors: list[tuple[type[RenderError], re.Pattern, int]] = [ # Even though the syntax error occurs after an invalid attribute value error, it should be listed first.