Skip to content
Myr

Add test for resetting attributes in `click.style()`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jasper Spaans · committed by David Lord · parent 05b795c · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • tests:+8 added−0 removed

1 file+8 added−0 removed

modified:tests/test_utils.py+8 added
70 unmodified lines
71 ({"italic": True}, "\x1b[3mx y\x1b[0m"),72 ({"blink": True}, "\x1b[5mx y\x1b[0m"),73 ({"reverse": True}, "\x1b[7mx y\x1b[0m"),74 ({"strikethrough": True}, "\x1b[9mx y\x1b[0m"),75 ({"bold": False}, "\x1b[22mx y\x1b[0m"),76 ({"dim": False}, "\x1b[22mx y\x1b[0m"),77 ({"underline": False}, "\x1b[24mx y\x1b[0m"),78 ({"overline": False}, "\x1b[55mx y\x1b[0m"),79 ({"italic": False}, "\x1b[23mx y\x1b[0m"),80 ({"blink": False}, "\x1b[25mx y\x1b[0m"),81 ({"reverse": False}, "\x1b[27mx y\x1b[0m"),82 ({"strikethrough": False}, "\x1b[29mx y\x1b[0m"),83 ({"fg": "black", "reset": False}, "\x1b[30mx y"),84 ],85)86def test_styling(styles, ref):
404 unmodified lines