can not be covered in testing

This commit is contained in:
Matthias 2022-05-06 02:07:59 +02:00
parent baf7e4505e
commit 0eff4a4526
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -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):