mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-30 12:19:12 -05:00
More miscellaneous cleanup
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user