X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c8ca6b2b9ff3510bee12129824cebfc2fc51e5b2..892eddacd215d685e136686b7f629ade70adca83:/tests/test_black.py?ds=inline diff --git a/tests/test_black.py b/tests/test_black.py index 7a4a3bb..15b6341 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -632,6 +632,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_fmtonoff4(self) -> None: + source, expected = read_data("fmtonoff4") + 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_remove_empty_parentheses_after_class(self) -> None: source, expected = read_data("class_blank_parentheses")