aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-webassets/disable-test-that-requires-js-babel.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-26 19:08:51 -0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-10-25 20:02:58 +0000
commita9aeafa108166407b632c2fba2860af037b7e3a8 (patch)
tree3e7332f3a554f600fb08a5b8b72ce16bbcf63680 /community/py3-webassets/disable-test-that-requires-js-babel.patch
parent3ac2256dbd76ebf75287c6dd695b917b1bbd8973 (diff)
downloadaports-a9aeafa108166407b632c2fba2860af037b7e3a8.tar.bz2
aports-a9aeafa108166407b632c2fba2860af037b7e3a8.tar.xz
community/py3-webassets: move from main
Closes !172
Diffstat (limited to 'community/py3-webassets/disable-test-that-requires-js-babel.patch')
-rw-r--r--community/py3-webassets/disable-test-that-requires-js-babel.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/py3-webassets/disable-test-that-requires-js-babel.patch b/community/py3-webassets/disable-test-that-requires-js-babel.patch
new file mode 100644
index 0000000000..cc451bd344
--- /dev/null
+++ b/community/py3-webassets/disable-test-that-requires-js-babel.patch
@@ -0,0 +1,39 @@
+diff --git a/tests/test_filters.py b/tests/test_filters.py
+index e697c26..7c7f536 100644
+--- a/tests/test_filters.py
++++ b/tests/test_filters.py
+@@ -1520,33 +1520,3 @@ class TestAutoprefixer6Filter(TempEnvironmentHelper):
+ assert 'webkit' in out
+
+
+-class TestBabel(TempEnvironmentHelper):
+- default_files = {
+- 'test.es6': """var x = (p) => { return false; };"""
+- }
+-
+- def test_es2015(self):
+- es2015 = get_filter('babel', presets='es2015')
+- try:
+- self.mkbundle('test.es6', filters=es2015, output='output.js').build()
+- except FilterError as e:
+- # babel is not installed, that's ok.
+- if 'Program file not found' in e.message:
+- raise SkipTest()
+- else:
+- raise
+- assert "var x = function x" in self.get('output.js')
+-
+- def test_extra_args(self):
+- self.env.config['BABEL_EXTRA_ARGS'] = ['--minified']
+- self.mkbundle('test.es6', filters='babel', output='output.js').build()
+- assert (self.get('output.js').strip() ==
+- 'var x=p=>{return false};')
+-
+- def test_run_in_debug_mode(self):
+- """A setting can be used to make babel not run in debug."""
+- self.env.debug = True
+- self.env.config['babel_run_in_debug'] = False
+- self.mkbundle('test.es6', filters='babel', output='output.js').build()
+- assert self.get('output.js') == self.default_files['test.es6']
+-
+