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:
7
tests/test_logs.py
Normal file
7
tests/test_logs.py
Normal 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)) == ''
|
||||
Reference in New Issue
Block a user