def test_format_summary(results): formatter = Formatter(results, colors=False) assert formatter.format_summary() == "4 specs, 1 failed, 1 pending"