From 6e17fbcea26ac847e4b3d47355f3db63f2d6e429 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sun, 25 Feb 2024 15:28:33 -0500 Subject: [PATCH] test coverage, *shrugs* --- ntclient/core/nutprogbar.py | 10 ---------- ntclient/utils/tree.py | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) 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, -- 2.52.0