summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_colors.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_colors.py b/tests/test_colors.py
index c71e7a1..bc95f71 100644
--- a/tests/test_colors.py
+++ b/tests/test_colors.py
@@ -143,6 +143,11 @@ def test_wrap_string():
+ "there"
) == wrap_string("Hi there", 3, Colors.Red)
+def test_wrap_string_disabled():
+ with disabled_state():
+ assert "Hi|there" == wrap_string("Hi there", 3, Colors.Red)
+ assert "|i there" == wrap_string("Hi there", 0, Colors.Red)
+
def test_strip_escapes():
assert "Hi there" == strip_escapes(