diff options
| author | Lily Foote <code@lilyf.org> | 2024-09-16 15:30:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-16 10:30:30 -0300 |
| commit | d50f61be7fe877fed0175a5cc9f0619487da4352 (patch) | |
| tree | 396880024778f15cee9f11f86724da568478806c /tests/template_tests/test_base.py | |
| parent | fd92f247891950bc92369b2457e032ec11f0147d (diff) | |
Improved TokenType.COMMENT test by using correct block syntax in template tests.
Diffstat (limited to 'tests/template_tests/test_base.py')
| -rw-r--r-- | tests/template_tests/test_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/template_tests/test_base.py b/tests/template_tests/test_base.py index 7b85d1de80..6457d4d4e6 100644 --- a/tests/template_tests/test_base.py +++ b/tests/template_tests/test_base.py @@ -8,7 +8,7 @@ class LexerTestMixin: template_string = ( "text\n" "{% if test %}{{ varvalue }}{% endif %}" - "{#comment {{not a var}} %{not a block}% #}" + "{#comment {{not a var}} {%not a block%} #}" "end text" ) expected_token_tuples = [ @@ -17,7 +17,7 @@ class LexerTestMixin: (TokenType.BLOCK, "if test", 2, (5, 18)), (TokenType.VAR, "varvalue", 2, (18, 32)), (TokenType.BLOCK, "endif", 2, (32, 43)), - (TokenType.COMMENT, "comment {{not a var}} %{not a block}%", 2, (43, 85)), + (TokenType.COMMENT, "comment {{not a var}} {%not a block%}", 2, (43, 85)), (TokenType.TEXT, "end text", 2, (85, 93)), ] |
