From e07144aeb4069053c0f9c06bca8ee3d05ab1467b Mon Sep 17 00:00:00 2001 From: Eric Siegerman Date: Tue, 30 Jun 2015 19:12:52 -0400 Subject: [PATCH] Add tests for the empty-key special case --- testing/test_terminal.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/test_terminal.py b/testing/test_terminal.py index e1436f7f9..877e9b070 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -755,6 +755,10 @@ def test_terminal_summary(testdir): # No tests were found at all ("green", "", {}), + # Test the empty-key special case + ("green", "", {"": (1,)}), + ("green", "1 passed", {"": (1,), "passed": (1,)}), + # A couple more complex combinations ("red", "1 failed, 2 passed, 3 xfailed",