Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cocolato committed Oct 29, 2024
1 parent 2ae9c15 commit a08ff83
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions test/test_lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,12 @@ def test_dict_expression(self):
CallNamespaceTag(
"self:dtest",
{
"d": "${\n {\n 'id':'4',\n 'foo':'barr'\n }\n }"
"d": "${\n\
{\n\
'id':'4',\n\
'foo':'barr'\n\
}\n\
}"
},
(7, 9),
[],
Expand Down Expand Up @@ -1167,7 +1172,8 @@ def test_dict_expression_2(self):
ControlLine("for", "endfor", True, (20, 1)),
ControlLine(
"if",
"if 'embeded' in d and 'name' in d['embeded']:",
"if 'embeded' in d and \
'name' in d['embeded']:",
False,
(21, 1),
),
Expand All @@ -1182,7 +1188,11 @@ def test_dict_expression_2(self):
CallNamespaceTag(
"self:dtest",
{
"d": "${ {\n 'x-on:click':'foo',\n 'foo':'bar',\n 'embeded':{'name':'J Doe'}\n } }"
"d": "${ {\n\
'x-on:click':'foo',\n\
'foo':'bar',\n\
'embeded':{'name':'J Doe'}\n\
} }"
},
(25, 9),
[],
Expand Down

0 comments on commit a08ff83

Please sign in to comment.