mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 12:24:29 +00:00
8 lines
185 B
Python
8 lines
185 B
Python
|
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)) == ''
|