Fix terminal output if no tests were run.

Before:
====  in 0.00 seconds ====

After:
==== no tests run in 0.00 seconds ====
This commit is contained in:
Florian Bruhin
2015-11-30 16:59:12 +01:00
parent b5d65e5139
commit aba55a0fb2
3 changed files with 10 additions and 3 deletions

View File

@@ -779,10 +779,10 @@ def test_terminal_summary(testdir):
("green", "1 passed, 1 xpassed", {"xpassed": (1,), "passed": (1,)}),
# Likewise if no tests were found at all
("yellow", "", {}),
("yellow", "no tests run", {}),
# Test the empty-key special case
("yellow", "", {"": (1,)}),
("yellow", "no tests run", {"": (1,)}),
("green", "1 passed", {"": (1,), "passed": (1,)}),