Assert 'test session starts' in output for test_color_{yes,no}

--HG--
branch : color_option
This commit is contained in:
Marc Abramowitz 2013-12-06 11:58:04 -08:00
parent 23fa4cec61
commit bec6ee5c29
1 changed files with 2 additions and 2 deletions

View File

@ -501,13 +501,13 @@ def test_fail_reporting_on_pass(testdir):
def test_color_yes(testdir, monkeypatch):
testdir.makepyfile("def test_this(): assert 1")
result = testdir.runpytest('--color=yes')
assert 'short test summary' not in result.stdout.str()
assert 'test session starts' in result.stdout.str()
assert u'\x1b[1m' in result.stdout.str()
def test_color_no(testdir):
testdir.makepyfile("def test_this(): assert 1")
result = testdir.runpytest('--color=no')
assert 'short test summary' not in result.stdout.str()
assert 'test session starts' in result.stdout.str()
assert u'\x1b[1m' not in result.stdout.str()
def test_getreportopt():