From 6d77ebc7a78caec4b5541c632f56c2447444876c Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Sun, 19 Jun 2022 15:33:16 -0400 Subject: [PATCH] [U] Test color scale --- hyfetch/color_scale.py | 2 +- test.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hyfetch/color_scale.py b/hyfetch/color_scale.py index 885ba14b..34ec0194 100644 --- a/hyfetch/color_scale.py +++ b/hyfetch/color_scale.py @@ -62,7 +62,7 @@ class Scale: return RGB(*get_raw(self.rgb, ratio)) -if __name__ == '__main__': +def test_color_scale(): scale = Scale(['#232323', '#4F1879', '#B43A78', '#F98766', '#FCFAC0']) colors = 100 diff --git a/test.py b/test.py index 987d3ba8..81110189 100644 --- a/test.py +++ b/test.py @@ -1,3 +1,4 @@ +from hyfetch.color_scale import test_color_scale from hyfetch.color_util import RGB, printc from hyfetch.neofetch_util import get_command_path, run_neofetch from hyfetch.presets import PRESETS @@ -35,3 +36,4 @@ def test_rgb_8bit_conversion(): if __name__ == '__main__': test_rgb_8bit_conversion() + test_color_scale()