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

Function test_simple_format

tests/test_format.py:34–38  ·  view source on GitHub ↗
(filename: str)

Source from the content-addressed store, hash-verified

32@pytest.mark.filterwarnings("ignore:invalid escape sequence.*:DeprecationWarning")
33@pytest.mark.parametrize("filename", all_data_cases("simple_cases"))
34def test_simple_format(filename: str) -> None:
35 magic_trailing_comma = filename != "skip_magic_trailing_comma"
36 check_file(
37 "simple_cases", filename, black.Mode(magic_trailing_comma=magic_trailing_comma)
38 )
39
40
41@pytest.mark.parametrize("filename", all_data_cases("preview"))

Callers

nothing calls this directly

Calls 1

check_fileFunction · 0.85

Tested by

no test coverage detected