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

Function test_preview_docstring_no_string_normalization

tests/test_format.py:164–173  ·  view source on GitHub ↗

Like test_docstring but with string normalization off *and* the preview style enabled.

()

Source from the content-addressed store, hash-verified

162
163
164def test_preview_docstring_no_string_normalization() -> None:
165 """
166 Like test_docstring but with string normalization off *and* the preview style
167 enabled.
168 """
169 source, expected = read_data(
170 "miscellaneous", "docstring_preview_no_string_normalization"
171 )
172 mode = replace(DEFAULT_MODE, string_normalization=False, preview=True)
173 assert_format(source, expected, mode)
174
175
176def test_long_strings_flag_disabled() -> 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