X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2ff05f25846c10b2fee269c29569b96dbac42836..e818260f1a223929d8f2056f484b73eaa8687622:/tests/test_black.py?ds=sidebyside diff --git a/tests/test_black.py b/tests/test_black.py index a7d04cc..f5114a7 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -363,6 +363,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_new_line_between_class_and_code(self) -> None: + source, expected = read_data("class_methods_new_line") + 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 = []