summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2020-10-30 06:38:13 +0100
committerGeorg Brandl <georg@python.org>2020-10-30 06:38:13 +0100
commit2fe2152377e317fd215776b6d7467bda3e8cda28 (patch)
tree72d73f253329615b83cf7dada06d613dd080f129 /tests
parent194eeb4cdd74bbf61aee18c3aad61917d2860673 (diff)
downloadpygments-git-2fe2152377e317fd215776b6d7467bda3e8cda28.tar.gz
test_templates: simplify and rename module
Diffstat (limited to 'tests')
-rw-r--r--tests/test_templates.py (renamed from tests/test_djangojavascript_lexer.py)18
1 files changed, 3 insertions, 15 deletions
diff --git a/tests/test_djangojavascript_lexer.py b/tests/test_templates.py
index a8fb197b..da9e3f0f 100644
--- a/tests/test_djangojavascript_lexer.py
+++ b/tests/test_templates.py
@@ -19,23 +19,11 @@ def test_do_not_mistake_JSDoc_for_django_comment(lexer):
*/
func = function(cool) {
};
-
+
/**
* @param {*} stuff
*/
fun = function(stuff) {
};"""
- tokens = list(lexer.get_tokens(text))
- assert (
- (
- Comment,
- """{*} cool
- */
- func = function(cool) {
- };
-
- /**
- * @param {*}""",
- )
- not in tokens
- )
+ tokens = lexer.get_tokens(text)
+ assert not any(t[0] == Comment for t in tokens)