X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1bbb01b854d168d76ebe4bf78961c2152ae075d9..9394de150ebf0adc426523f46dc08e8b2b2b0b63:/tests/test_black.py?ds=inline diff --git a/tests/test_black.py b/tests/test_black.py index 88c03d0..828b3e4 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -264,6 +264,14 @@ class BlackTestCase(unittest.TestCase): black.assert_equivalent(source, actual) black.assert_stable(source, actual, black.FileMode()) + @patch("black.dump_to_file", dump_to_stderr) + def test_function_trailing_comma(self) -> None: + source, expected = read_data("function_trailing_comma") + actual = fs(source) + self.assertFormatEqual(expected, actual) + black.assert_equivalent(source, actual) + black.assert_stable(source, actual, black.FileMode()) + @patch("black.dump_to_file", dump_to_stderr) def test_expression(self) -> None: source, expected = read_data("expression")