mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
parent
26e60fa333
commit
b81c9802ae
28 changed files with 58 additions and 58 deletions
|
|
@ -12,7 +12,7 @@ from pre_commit.color import use_color
|
|||
|
||||
|
||||
@pytest.mark.parametrize(('in_text', 'in_color', 'in_use_color', 'expected'), (
|
||||
('foo', GREEN, True, '{0}foo\033[0m'.format(GREEN)),
|
||||
('foo', GREEN, True, '{}foo\033[0m'.format(GREEN)),
|
||||
('foo', GREEN, False, 'foo'),
|
||||
))
|
||||
def test_format_color(in_text, in_color, in_use_color, expected):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue