Skip to content

Commit 0dd41a3

Browse files
committed
Add noqa positions after applying black format
1 parent 9aa8be1 commit 0dd41a3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/tests/test_compressor.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def test_compile_templates(self):
121121
)
122122
self.assertEqual(
123123
templates,
124-
"""window.JST = window.JST || {};\n%s\nwindow.JST[\'list\'] = template(\'<div class="photo">\\n <img src="<%%= src %%>" />\\n <div class="caption">\\n <%%= caption %%>\\n </div>\\n</div>\');\n"""
125-
% TEMPLATE_FUNC, # noqa
124+
"""window.JST = window.JST || {};\n%s\nwindow.JST[\'list\'] = template(\'<div class="photo">\\n <img src="<%%= src %%>" />\\n <div class="caption">\\n <%%= caption %%>\\n </div>\\n</div>\');\n""" # noqa
125+
% TEMPLATE_FUNC,
126126
)
127127
templates = self.compressor.compile_templates(
128128
[
@@ -132,8 +132,8 @@ def test_compile_templates(self):
132132
)
133133
self.assertEqual(
134134
templates,
135-
"""window.JST = window.JST || {};\n%s\nwindow.JST[\'video_detail\'] = template(\'<div class="video">\\n <video src="<%%= src %%>" />\\n <div class="caption">\\n <%%= description %%>\\n </div>\\n</div>\');\nwindow.JST[\'photo_detail\'] = template(\'<div class="photo">\\n <img src="<%%= src %%>" />\\n <div class="caption">\\n <%%= caption %%> by <%%= author %%>\\n </div>\\n</div>\');\n"""
136-
% TEMPLATE_FUNC, # noqa
135+
"""window.JST = window.JST || {};\n%s\nwindow.JST[\'video_detail\'] = template(\'<div class="video">\\n <video src="<%%= src %%>" />\\n <div class="caption">\\n <%%= description %%>\\n </div>\\n</div>\');\nwindow.JST[\'photo_detail\'] = template(\'<div class="photo">\\n <img src="<%%= src %%>" />\\n <div class="caption">\\n <%%= caption %%> by <%%= author %%>\\n </div>\\n</div>\');\n""" # noqa
136+
% TEMPLATE_FUNC,
137137
)
138138

139139
def test_embeddable(self):
@@ -198,9 +198,9 @@ def test_url_rewrite(self):
198198
background-image: url(#image-gradient);
199199
}
200200
@font-face{src:url(../pipeline/fonts/pipeline.eot);src:url(../pipeline/fonts/pipeline.eot?#iefix) format('embedded-opentype'),url(../pipeline/fonts/pipeline.woff) format('woff'),url(../pipeline/fonts/pipeline.ttf) format('truetype');}
201-
""",
201+
""", # noqa
202202
output,
203-
) # noqa
203+
)
204204

205205
def test_url_rewrite_data_uri(self):
206206
output = self.compressor.concatenate_and_rewrite(
@@ -216,9 +216,9 @@ def test_url_rewrite_data_uri(self):
216216
.data-url-quoted {
217217
background-image: url('data:image/svg+xml;charset=US-ASCII,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20%20width%3D%2212px%22%20height%3D%2214px%22%20viewBox%3D%220%200%2012%2014%22%20style%3D%22enable-background%3Anew%200%200%2012%2014%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20d%3D%22M11%2C6V5c0-2.762-2.239-5-5-5S1%2C2.238%2C1%2C5v1H0v8h12V6H11z%20M6.5%2C9.847V12h-1V9.847C5.207%2C9.673%2C5%2C9.366%2C5%2C9%20c0-0.553%2C0.448-1%2C1-1s1%2C0.447%2C1%2C1C7%2C9.366%2C6.793%2C9.673%2C6.5%2C9.847z%20M9%2C6H3V5c0-1.657%2C1.343-3%2C3-3s3%2C1.343%2C3%2C3V6z%22%2F%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E');
218218
}
219-
""",
219+
""", # noqa
220220
output,
221-
) # noqa
221+
)
222222

223223
@skipIf(sys.platform.startswith("win"), "requires posix platform")
224224
def test_compressor_subprocess_unicode(self):

tests/tests/test_template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def test_package_css_disabled(self):
3232
self.assertEqual(
3333
"""<link href="/static/pipeline/css/first.css" rel="stylesheet" type="text/css" />
3434
<link href="/static/pipeline/css/second.css" rel="stylesheet" type="text/css" />
35-
<link href="/static/pipeline/css/urls.css" rel="stylesheet" type="text/css" />""",
35+
<link href="/static/pipeline/css/urls.css" rel="stylesheet" type="text/css" />""", # noqa
3636
template.render(),
37-
) # noqa
37+
)
3838

3939
def test_package_js(self):
4040
template = self.env.from_string("""{% javascript "scripts" %}""")

0 commit comments

Comments
 (0)