1. Marc Abramowitz
  2. pytest

Commits

Marc Abramowitz  committed 2cd2f83

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

  • Participants
  • Parent commits d271a91
  • Branches color_option

Comments (0)

Files changed (1)

File testing/test_terminal.py

View file
  • Ignore whitespace
 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():