push
circleci
36 of 72 new or added lines in 9 files covered. (50.0%)
442 existing lines in 37 files now uncovered.17057 of 34087 relevant lines covered (50.04%)
1.26 hits per line
1 |
import json |
3✔ |
2 |
|
|
3 |
from django.utils.safestring import mark_safe |
3✔ |
4 |
|
|
5 |
|
|
6 |
def format_json(obj, fld_name): |
3✔ |
UNCOV
7
|
result = ""
|
1✔ |
UNCOV
8
|
if obj:
|
1✔ |
UNCOV
9
|
result = json.dumps(getattr(obj, fld_name), indent=4, sort_keys=True) |
1✔ |
UNCOV
10
|
result_str = f"<pre>{result}</pre>"
|
1✔ |
UNCOV
11
|
result = mark_safe(result_str) |
1✔ |
UNCOV
12
|
return result
|
1✔ |