Skip to content

Commit 78b4fc9

Browse files
committed
refactor: fix tests
1 parent e4c389a commit 78b4fc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_template_parser_tag_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def test_filter_whitespace(self):
666666
def test_filter_argument_must_follow_filter(self):
667667
with pytest.raises(
668668
SyntaxError,
669-
match=re.escape("expected self_closing_slash, filter, or COMMENT"),
669+
match=re.escape("expected filter or COMMENT"),
670670
):
671671
parse_tag('{% component value=val|yesno:"yes,no":arg %}')
672672

@@ -3670,6 +3670,6 @@ def test_self_closing_with_args(self):
36703670
def test_self_closing_in_middle_errors(self):
36713671
with pytest.raises(
36723672
SyntaxError,
3673-
match=r"expected COMMENT",
3673+
match=r"expected attribute or COMMENT",
36743674
):
36753675
parse_tag("{% my_tag / key=val %}")

0 commit comments

Comments
 (0)