MCPcopy
hub / github.com/psf/black / test_python315

Method test_python315

tests/test_black.py:443–451  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

441
442 @patch("black.dump_to_file", dump_to_stderr)
443 def test_python315(self) -> None:
444 source_path = get_case_path("cases", "python315")
445 _, source, expected = read_data_from_file(source_path)
446 actual = fs(source)
447 self.assertFormatEqual(expected, actual)
448 if sys.version_info >= (3, 15):
449 black.assert_equivalent(source, actual)
450 black.assert_stable(source, actual, DEFAULT_MODE)
451 self.invokeBlack([str(source_path), "--target-version", "py315", "--fast"])
452
453 def test_tab_comment_indentation(self) -> None:
454 contents_tab = "if 1:\n\tif 2:\n\t\tpass\n\t# comment\n\tpass\n"

Callers

nothing calls this directly

Calls 3

get_case_pathFunction · 0.90
read_data_from_fileFunction · 0.90
assertFormatEqualMethod · 0.80

Tested by

no test coverage detected