Skip to content

Commit ed0c1b7

Browse files
committed
Fixed jinaj2 test cases
1 parent c60c3c6 commit ed0c1b7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/app/templates/home.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<body>
1111
<div id="react-app"></div>
12-
{{ render_bundle('main', 'js') }}
12+
{{ render_bundle('main', 'js', attrs='async charset="UTF-8"') }}
1313
{{ render_bundle('app2', 'js', 'APP2') }}
1414
</body>
1515
</html>

tests/app/tests/test_webpack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def test_jinja2(self):
142142
with self.settings(**settings):
143143
request = self.factory.get('/')
144144
result = view(request)
145-
self.assertIn('<link type="text/css" href="/static/bundles/styles.css" rel="stylesheet"/>', result.rendered_content)
146-
self.assertIn('<script type="text/javascript" src="/static/bundles/main.js"></script>', result.rendered_content)
145+
self.assertIn('<link type="text/css" href="/static/bundles/styles.css" rel="stylesheet" />', result.rendered_content)
146+
self.assertIn('<script type="text/javascript" src="/static/bundles/main.js" async charset="UTF-8"></script>', result.rendered_content)
147147

148148
def test_reporting_errors(self):
149149
#TODO:

webpack_loader/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
__author__ = 'Owais Lone'
2-
__version__ = '0.3.1'
2+
__version__ = '0.3.2'
33

44
default_app_config = 'webpack_loader.apps.WebpackLoaderConfig'

0 commit comments

Comments
 (0)