From cf3b138a87e4a0c4a2d5907dc625733f533e1cfe Mon Sep 17 00:00:00 2001 From: Jasper Spaans Date: Mon, 6 Sep 2021 12:01:58 +0200 Subject: Add test for resetting attributes in `click.style()` --- tests/test_utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index 063d3cf..d21b246 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -72,6 +72,14 @@ def test_echo_custom_file(): ({"blink": True}, "\x1b[5mx y\x1b[0m"), ({"reverse": True}, "\x1b[7mx y\x1b[0m"), ({"strikethrough": True}, "\x1b[9mx y\x1b[0m"), + ({"bold": False}, "\x1b[22mx y\x1b[0m"), + ({"dim": False}, "\x1b[22mx y\x1b[0m"), + ({"underline": False}, "\x1b[24mx y\x1b[0m"), + ({"overline": False}, "\x1b[55mx y\x1b[0m"), + ({"italic": False}, "\x1b[23mx y\x1b[0m"), + ({"blink": False}, "\x1b[25mx y\x1b[0m"), + ({"reverse": False}, "\x1b[27mx y\x1b[0m"), + ({"strikethrough": False}, "\x1b[29mx y\x1b[0m"), ({"fg": "black", "reset": False}, "\x1b[30mx y"), ], ) -- cgit v1.2.1