test_summary_stats() now prints its parameter values

This makes it easier to identify failing tests.
This commit is contained in:
Eric Siegerman 2015-06-30 18:48:49 -04:00
parent bfc3e48fd5
commit 7993afae46
1 changed files with 3 additions and 0 deletions

View File

@ -767,7 +767,10 @@ def test_terminal_summary(testdir):
"xfailed": (1,2)}),
])
def test_summary_stats(exp_line, exp_color, stats_arg):
print("Based on stats: %s" % stats_arg)
print("Expect summary: \"%s\"; with color \"%s\"" % (exp_line, exp_color))
(line, color) = build_summary_stats_line(stats_arg)
print("Actually got: \"%s\"; with color \"%s\"" % (line, color))
assert line == exp_line
assert color == exp_color