Consider --color option in more places which deal with TerminalWriters

This commit is contained in:
Bruno Oliveira
2015-07-18 16:39:55 -03:00
parent 23aaa8a62c
commit 2f7d0f8bd9
9 changed files with 37 additions and 10 deletions

View File

@@ -623,6 +623,11 @@ class TestRequestBasic:
*arg1*
""")
def test_show_fixtures_color_yes(self, testdir):
testdir.makepyfile("def test_this(): assert 1")
result = testdir.runpytest('--color=yes', '--fixtures')
assert '\x1b[32mtmpdir' in result.stdout.str()
def test_newstyle_with_request(self, testdir):
testdir.makepyfile("""
import pytest