Coverage for CIResults/templatetags/runconfig_diff.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2024-12-19 09:20 +0000

1from django import template 

2 

3 

4# Define some filters for django's 

5register = template.Library() 

6 

7 

8@register.filter 

9def show_suppressed(value): 

10 return value.name if value.vetted else "{"+value.name+"}" 

11 

12 

13@register.filter 

14def show_test(test): 

15 new = " (NEW)" if test.first_runconfig is None else "" 

16 return "{}{}".format(show_suppressed(test), new)