From 0eff4a45266112e120013b54134721f525fbe172 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 6 May 2022 02:07:59 +0200 Subject: [PATCH] can not be covered in testing --- InvenTree/part/templatetags/inventree_extras.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/templatetags/inventree_extras.py b/InvenTree/part/templatetags/inventree_extras.py index 3eba8368af..5d991e9fd5 100644 --- a/InvenTree/part/templatetags/inventree_extras.py +++ b/InvenTree/part/templatetags/inventree_extras.py @@ -540,7 +540,7 @@ class I18nStaticNode(StaticNode): custom StaticNode replaces a variable named *lng* in the path with the current language """ - def render(self, context): + def render(self, context): # pragma: no cover self.original = getattr(self, 'original', None) @@ -563,7 +563,7 @@ if settings.DEBUG: """ simple tag to enable {% url %} functionality instead of {% static %} """ return reverse(url_name) -else: +else: # pragma: no cover @register.tag('i18n_static') def do_i18n_static(parser, token):