X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2d9eaafa97e967c8974a6321dcc442a90192140f..987543001ab6aded0ff4f87a9eafe641e33e2206:/tests/test_black.py diff --git a/tests/test_black.py b/tests/test_black.py index 5e17faf..951b298 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -325,6 +325,14 @@ class BlackTestCase(unittest.TestCase): black.assert_equivalent(source, actual) black.assert_stable(source, actual, line_length=ll) + @patch("black.dump_to_file", dump_to_stderr) + def test_remove_empty_parentheses_after_class(self) -> None: + source, expected = read_data("class_blank_parentheses") + actual = fs(source) + self.assertFormatEqual(expected, actual) + black.assert_equivalent(source, actual) + black.assert_stable(source, actual, line_length=ll) + def test_report(self) -> None: report = black.Report() out_lines = []