include webpack commons bundle on all pages; stub webpack_loader in python unittests

include webpack commons bundle on all pages

quotes

homegrown webpack_loader mock

toggle installed webpack_loader in test env file instead

fix test checking context
This commit is contained in:
Ari Rizzitano
2017-07-19 11:38:01 -04:00
parent 53d9f87df3
commit 3d4b2a7382
12 changed files with 40 additions and 16 deletions

View File

View File

@@ -0,0 +1,16 @@
"""
This module mocks the external package django-webpack-loader within
python unittest execution, so python tests have no dependency on
frontend assets. See LEARNER-1938 for further details.
"""
from django import template
register = template.Library()
@register.simple_tag
def render_bundle(bundle_name):
"""
This is the only webpack_loader function we call directly.
"""
return ''