MCPcopy Create free account
hub / github.com/psf/black / test_docstring_no_string_normalization

Function test_docstring_no_string_normalization

tests/test_format.py:150–154  ·  view source on GitHub ↗

Like test_docstring but with string normalization off.

()

Source from the content-addressed store, hash-verified

148
149@pytest.mark.filterwarnings("ignore:invalid escape sequence.*:DeprecationWarning")
150def test_docstring_no_string_normalization() -> None:
151 """Like test_docstring but with string normalization off."""
152 source, expected = read_data("miscellaneous", "docstring_no_string_normalization")
153 mode = replace(DEFAULT_MODE, string_normalization=False)
154 assert_format(source, expected, mode)
155
156
157def test_docstring_line_length_6() -> None:

Callers

nothing calls this directly

Calls 3

read_dataFunction · 0.90
assert_formatFunction · 0.90
replaceFunction · 0.85

Tested by

no test coverage detected