1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-29 22:24:44 +00:00

Use colorama for colored output

This commit is contained in:
nvbn
2015-04-22 06:03:06 +02:00
parent 126194ec2e
commit 5d424dad88
6 changed files with 76 additions and 18 deletions

7
tests/test_logs.py Normal file
View File

@@ -0,0 +1,7 @@
from mock import Mock
from thefuck import logs
def test_color():
assert logs.color('red', Mock(no_colors=False)) == 'red'
assert logs.color('red', Mock(no_colors=True)) == ''