X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/7e1c5b2ba6355f1a6916cf5545dc577cf2e6c727..b38a3b94bde9a2f651fe1e9df452de0fd28eb577:/tests/test_black.py?ds=inline diff --git a/tests/test_black.py b/tests/test_black.py index e512832..62b4b1a 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -188,6 +188,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_fmtonoff(self) -> None: + source, expected = read_data('fmtonoff') + 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 = []