summaryrefslogtreecommitdiff
path: root/test/test_template.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2021-10-25 15:45:42 -0400
committersqla-tester <sqla-tester@sqlalchemy.org>2021-10-25 15:45:42 -0400
commit6055be01a1357ec3c13937c3aab28360b5e80ea3 (patch)
treeb846c03c14e14c597fcb7c57f51698c6868a9c25 /test/test_template.py
parent03c65d63d1df5835695a96ab7909e7086ba3dcf3 (diff)
downloadmako-6055be01a1357ec3c13937c3aab28360b5e80ea3.tar.gz
update black and format
Closes: #342 Pull-request: https://github.com/sqlalchemy/mako/pull/342 Pull-request-sha: 21a068103481410cf4856fb07c19146dc684d460 Change-Id: I9027433ec23ee19c9d9a47015e0327acf409e2d8
Diffstat (limited to 'test/test_template.py')
-rw-r--r--test/test_template.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/test/test_template.py b/test/test_template.py
index 715bc4c..f2ca6b4 100644
--- a/test/test_template.py
+++ b/test/test_template.py
@@ -332,7 +332,7 @@ quand une drôle de petite voix m’a réveillé. Elle disait:
def test_input_encoding(self):
"""test the 'input_encoding' flag on Template, and that unicode
- objects arent double-decoded"""
+ objects arent double-decoded"""
self._do_memory_test(
("hello ${f('śląsk')}"),
@@ -927,15 +927,18 @@ class ControlTest(TemplateTest):
%endfor
"""
)
- assert result_lines(
- t.render(
- y=[
- {"test": "one"},
- {"foo": "bar"},
- {"foo": "bar", "test": "two"},
- ]
+ assert (
+ result_lines(
+ t.render(
+ y=[
+ {"test": "one"},
+ {"foo": "bar"},
+ {"foo": "bar", "test": "two"},
+ ]
+ )
)
- ) == ["yes x has test", "no x does not have test", "yes x has test"]
+ == ["yes x has test", "no x does not have test", "yes x has test"]
+ )
def test_blank_control_1(self):
self._do_memory_test(