Consider --color option in more places which deal with TerminalWriters
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user