diff --git a/cms/conftest.py b/cms/conftest.py index 3a25a994f0ac..9e1e46fc936b 100644 --- a/cms/conftest.py +++ b/cms/conftest.py @@ -59,6 +59,10 @@ def no_webpack_loader(monkeypatch): "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='': [] + ) monkeypatch.setattr( "webpack_loader.utils.get_files", lambda entry, extension=None, config='DEFAULT', attrs='': [] diff --git a/common/lib/conftest.py b/common/lib/conftest.py index b9db58ddf5e2..180348f6f1db 100644 --- a/common/lib/conftest.py +++ b/common/lib/conftest.py @@ -13,6 +13,10 @@ def no_webpack_loader(monkeypatch): "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='': [] + ) monkeypatch.setattr( "webpack_loader.utils.get_files", lambda entry, extension=None, config='DEFAULT', attrs='': [] diff --git a/conftest.py b/conftest.py index 4ced0047c037..ec683b154d6e 100644 --- a/conftest.py +++ b/conftest.py @@ -16,6 +16,10 @@ def no_webpack_loader(monkeypatch): "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='': [] + ) monkeypatch.setattr( "webpack_loader.utils.get_files", lambda entry, extension=None, config='DEFAULT', attrs='': []