test: Fix test monkeypatches for render_bundle

Now that the signature has changed, update the testing monkeypatches as well.
This commit is contained in:
Feanil Patel
2025-09-12 11:50:48 -04:00
parent 438397d7b2
commit 25a90fcbb5
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ def no_webpack_loader(monkeypatch):
"""
monkeypatch.setattr(
"webpack_loader.templatetags.webpack_loader.render_bundle",
lambda entry, extension=None, config='DEFAULT', attrs='': ''
lambda context, entry, extension=None, config='DEFAULT', attrs='': ''
)
monkeypatch.setattr(
"webpack_loader.utils.get_as_tags",

View File

@@ -21,7 +21,7 @@ TestCase.maxDiff = None
def no_webpack_loader(monkeypatch): # lint-amnesty, pylint: disable=missing-function-docstring
monkeypatch.setattr(
"webpack_loader.templatetags.webpack_loader.render_bundle",
lambda entry, extension=None, config='DEFAULT', attrs='': ''
lambda context, entry, extension=None, config='DEFAULT', attrs='': ''
)
monkeypatch.setattr(
"webpack_loader.utils.get_as_tags",