summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-06-29 06:56:15 +0200
committerGitHub <noreply@github.com>2025-06-29 06:56:15 +0200
commit81e48c151b5d55703049163c441538c041e31ff5 (patch)
treef0dacdc3a1725839ec92d3fddf5d1ec6b6b9189a /tests
parentc7102e6cece6551f7d5a74f6e3350967fab1741d (diff)
parent454b5ee1a00e9d4b96f5f057a8611da68a6cc796 (diff)
Merge pull request #3825 from not-my-profile/support-bundled-inkex
Revert "add icc color workaround (#3687)" and use 1.4.x inkex
Diffstat (limited to 'tests')
-rw-r--r--tests/test_threads_color.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_threads_color.py b/tests/test_threads_color.py
new file mode 100644
index 00000000..a5442359
--- /dev/null
+++ b/tests/test_threads_color.py
@@ -0,0 +1,16 @@
+from lib.threads.color import ThreadColor
+
+
+def test_init_color_from_string_rgb():
+ color = ThreadColor("rgb(170, 187, 204)")
+ assert color.rgb == (170, 187, 204)
+
+
+def test_init_color_from_string_hex():
+ color = ThreadColor("#AABBCC")
+ assert color.rgb == (170, 187, 204)
+
+
+def test_init_color_from_string_hex_icc():
+ color = ThreadColor("#AABBCC icc-color(Some-Profile, 0.1, 0.2, 0.3, 0.4)")
+ assert color.rgb == (170, 187, 204)