def test_format_returns_nothing(): """Verify Nothing.format returns None.""" formatter = default.Nothing(options()) error = style_guide.Error('code', 'file.py', 1, 1, 'text', '1') assert formatter.format(error) is None
def test_show_source_returns_nothing(): """Verify Nothing.show_source returns None.""" formatter = default.Nothing(options()) error = style_guide.Violation('code', 'file.py', 1, 1, 'text', '1') assert formatter.show_source(error) is None
def test_show_source_returns_nothing(): """Verify Nothing.show_source returns None.""" formatter = default.Nothing(options()) error = style_guide.Violation("code", "file.py", 1, 1, "text", "1") assert formatter.show_source(error) is None