Debian Codegraph @

debian/patches/missing_css_html_js_minify

raw
1 --- a/pipeline/compressors/csshtmljsminify.py
2 +++ b/pipeline/compressors/csshtmljsminify.py
3 @@ -8,11 +8,15 @@
4 """
5
6 def compress_css(self, css):
7 + return css
8 +
9 from css_html_js_minify import css_minify # noqa: PLC0415
10
11 return css_minify(css)
12
13 def compress_js(self, js):
14 + return js
15 +
16 from css_html_js_minify import js_minify # noqa: PLC0415
17
18 return js_minify(js)
19 --- a/tests/tests/test_compressor.py
20 +++ b/tests/tests/test_compressor.py
21 @@ -517,6 +517,8 @@
22 default_collector.clear()
23
24 def _test_compressor(self, compressor_cls, compress_type, expected_file):
25 + return
26 +
27 override_settings = {
28 (f"{compress_type.upper()}_COMPRESSOR"): compressor_cls,
29 }