Skip to content

Commit

Permalink
Updated webpack_bundles template tag to do nothing during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejenny committed Nov 4, 2024
1 parent b7db615 commit 17619cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions corehq/apps/hqwebapp/templatetags/hq_shared_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@ def __repr__(self):

@register.filter
def webpack_bundles(entry_name):
if settings.UNIT_TESTING:
return []

from corehq.apps.hqwebapp.utils.webpack import get_webpack_manifest, WebpackManifestNotFoundError
from corehq.apps.hqwebapp.utils.bootstrap import get_bootstrap_version, BOOTSTRAP_5, BOOTSTRAP_3
bootstrap_version = get_bootstrap_version()
Expand Down

0 comments on commit 17619cc

Please sign in to comment.