X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/d4ff985853c8d140d73b9d362604deedb41eb20e..60a2e8e2c26d6312cd86b40f680c5037571acafc:/tests/test_format.py diff --git a/tests/test_format.py b/tests/test_format.py index 01cd61e..0816bbd 100644 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -146,6 +146,13 @@ def test_docstring_no_string_normalization() -> None: assert_format(source, expected, mode) +def test_docstring_line_length_6() -> None: + """Like test_docstring but with line length set to 6.""" + source, expected = read_data("miscellaneous", "linelength6") + mode = black.Mode(line_length=6) + assert_format(source, expected, mode) + + def test_preview_docstring_no_string_normalization() -> None: """ Like test_docstring but with string normalization off *and* the preview style