test_summary_stats() now prints its parameter values
This makes it easier to identify failing tests.
This commit is contained in:
parent
bfc3e48fd5
commit
7993afae46
|
@ -767,7 +767,10 @@ def test_terminal_summary(testdir):
|
||||||
"xfailed": (1,2)}),
|
"xfailed": (1,2)}),
|
||||||
])
|
])
|
||||||
def test_summary_stats(exp_line, exp_color, stats_arg):
|
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)
|
(line, color) = build_summary_stats_line(stats_arg)
|
||||||
|
print("Actually got: \"%s\"; with color \"%s\"" % (line, color))
|
||||||
assert line == exp_line
|
assert line == exp_line
|
||||||
assert color == exp_color
|
assert color == exp_color
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue