diff options
author | Jasper Spaans <jasper@startmail.com> | 2021-09-06 12:01:58 +0200 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2021-09-26 07:40:26 -0700 |
commit | cf3b138a87e4a0c4a2d5907dc625733f533e1cfe (patch) | |
tree | 958a2519d47b7f414f86917cf0eacdc24ae37fc2 | |
parent | 05b795c917f4146edfe83b2d08c189886b301785 (diff) | |
download | click-cf3b138a87e4a0c4a2d5907dc625733f533e1cfe.tar.gz |
Add test for resetting attributes in `click.style()`
-rw-r--r-- | tests/test_utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
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"), ], ) |