Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
janbritz committed Aug 27, 2024
1 parent 980f212 commit bbc830b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/questionpy_sdk/webserver/test_question_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def test_should_replace_shuffled_index(renderer: QuestionUIRenderer) -> None:
@pytest.mark.render_params(
xml="""
<div xmlns:qpy="http://questionpy.org/ns/question">
<qpy:element>Text</qpy:element>
<qpy:format-float>2</qpy:format-float>
<element qpy:attribute="value">Content</element>
<!-- Comment -->
<regular xmlns:qpy="http://questionpy.org/ns/question">Normal Content</regular>
Expand Down Expand Up @@ -365,10 +365,10 @@ def test_errors_should_be_collected(renderer: QuestionUIRenderer) -> None:
</div>
"""
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.
Expand Down

0 comments on commit bbc830b

Please sign in to comment.