Fix studio xblock failing renders (due to asset hashing loop)

This commit is contained in:
Calen Pennington
2018-06-07 12:27:18 -04:00
parent be3c7e05c5
commit 8b35756699
3 changed files with 25 additions and 8 deletions

View File

@@ -47,3 +47,15 @@ def _django_clear_site_cache():
with what has been working for us so far.
"""
pass
@pytest.fixture(autouse=True)
def no_webpack_loader(monkeypatch):
monkeypatch.setattr(
"webpack_loader.templatetags.webpack_loader.render_bundle",
lambda entry, extension=None, config='DEFAULT', attrs='': ''
)
monkeypatch.setattr(
"webpack_loader.utils.get_as_tags",
lambda entry, extension=None, config='DEFAULT', attrs='': []
)