From: Shane Jaroch Date: Sun, 25 Feb 2024 20:28:33 +0000 (-0500) Subject: test coverage, *shrugs* X-Git-Tag: v0.2.8.dev0~17 X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=6e17fbcea26ac847e4b3d47355f3db63f2d6e429;p=nutratech%2Fcli.git test coverage, *shrugs* --- diff --git a/ntclient/core/nutprogbar.py b/ntclient/core/nutprogbar.py index c9b9e92..2448e45 100644 --- a/ntclient/core/nutprogbar.py +++ b/ntclient/core/nutprogbar.py @@ -52,16 +52,6 @@ def nutrient_progress_bars( else: nut_amts[int(nutrient_id)] += amt * ratio - # nut_percs = {} - # for nutrient_id, amt in nut_amts.items(): - # # TODO: if not rda, show raw amounts? - # if isinstance(_nutrients[nutrient_id][1], float): - # # print(type(_nutrients[nutrient_id][1]), _nutrients[nutrient_id]) - # nut_percs[nutrient_id] = round(amt / _nutrients[nutrient_id][1], 3) - # else: - # print(type(_nutrients[nutrient_id][1]), _nutrients[nutrient_id]) - # continue - print_bars() return nut_amts diff --git a/ntclient/utils/tree.py b/ntclient/utils/tree.py index 9a50a7e..5aa59b2 100644 --- a/ntclient/utils/tree.py +++ b/ntclient/utils/tree.py @@ -26,7 +26,7 @@ def colorize(path: str, full: bool = False) -> str: file = path if full else os.path.basename(path) if os.path.islink(path): - return "".join( + return "".join( # pragma: no cover [ COLOR_LINK, file,