mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
More miscellaneous cleanup
This commit is contained in:
parent
489d9f9926
commit
df40e862f4
33 changed files with 209 additions and 296 deletions
|
|
@ -12,7 +12,7 @@ def test_logging_handler_color(cap_out):
|
|||
handler = LoggingHandler(True)
|
||||
handler.emit(_log_record('hi', logging.WARNING))
|
||||
ret = cap_out.get()
|
||||
assert ret == color.YELLOW + '[WARNING]' + color.NORMAL + ' hi\n'
|
||||
assert ret == f'{color.YELLOW}[WARNING]{color.NORMAL} hi\n'
|
||||
|
||||
|
||||
def test_logging_handler_no_color(cap_out):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue