diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-08-09 13:33:16 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-08-09 13:42:26 +0200 |
| commit | 65ed96fa394f3d9d548c6d9d8144bbb51c4c68ff (patch) | |
| tree | 7d2734549736b978b8ec62cfd1c4be8366ad06e0 /tests | |
| parent | b2be7e12cce8e62eeee512fbea4a32503d048120 (diff) | |
Refs #33002 -- Added DebugLexer/Lexer.tokenize() test for trailing text token.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/template_tests/test_base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/template_tests/test_base.py b/tests/template_tests/test_base.py index 72836337b8..64fc562626 100644 --- a/tests/template_tests/test_base.py +++ b/tests/template_tests/test_base.py @@ -9,6 +9,7 @@ class LexerTestMixin: 'text\n' '{% if test %}{{ varvalue }}{% endif %}' '{#comment {{not a var}} %{not a block}% #}' + 'end text' ) expected_token_tuples = [ # (token_type, contents, lineno, position) @@ -17,6 +18,7 @@ class LexerTestMixin: (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.TEXT, 'end text', 2, (85, 93)), ] def test_tokenize(self): |
