From 25a90fcbb561ab0b1f642260f51c938e80a44a72 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Fri, 12 Sep 2025 11:50:48 -0400 Subject: [PATCH] test: Fix test monkeypatches for render_bundle Now that the signature has changed, update the testing monkeypatches as well. --- cms/conftest.py | 2 +- conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/conftest.py b/cms/conftest.py index 80d971070a..0fb285f8bd 100644 --- a/cms/conftest.py +++ b/cms/conftest.py @@ -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", diff --git a/conftest.py b/conftest.py index 2ed8f64360..066af9c8e3 100644 --- a/conftest.py +++ b/conftest.py @@ -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",