@@ -121,8 +121,8 @@ def test_compile_templates(self):
121
121
)
122
122
self .assertEqual (
123
123
templates ,
124
- """window.JST = window.JST || {};\n %s\n window.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\n window.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 ,
126
126
)
127
127
templates = self .compressor .compile_templates (
128
128
[
@@ -132,8 +132,8 @@ def test_compile_templates(self):
132
132
)
133
133
self .assertEqual (
134
134
templates ,
135
- """window.JST = window.JST || {};\n %s\n window.JST[\' video_detail\' ] = template(\' <div class="video">\\ n <video src="<%%= src %%>" />\\ n <div class="caption">\\ n <%%= description %%>\\ n </div>\\ n</div>\' );\n window.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\n window.JST[\' video_detail\' ] = template(\' <div class="video">\\ n <video src="<%%= src %%>" />\\ n <div class="caption">\\ n <%%= description %%>\\ n </div>\\ n</div>\' );\n window.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 ,
137
137
)
138
138
139
139
def test_embeddable (self ):
@@ -198,9 +198,9 @@ def test_url_rewrite(self):
198
198
background-image: url(#image-gradient);
199
199
}
200
200
@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
202
202
output ,
203
- ) # noqa
203
+ )
204
204
205
205
def test_url_rewrite_data_uri (self ):
206
206
output = self .compressor .concatenate_and_rewrite (
@@ -216,9 +216,9 @@ def test_url_rewrite_data_uri(self):
216
216
.data-url-quoted {
217
217
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');
218
218
}
219
- """ ,
219
+ """ , # noqa
220
220
output ,
221
- ) # noqa
221
+ )
222
222
223
223
@skipIf (sys .platform .startswith ("win" ), "requires posix platform" )
224
224
def test_compressor_subprocess_unicode (self ):
0 commit comments