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

Method test_string_quotes

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

Source from the content-addressed store, hash-verified

366
367 @patch("black.dump_to_file", dump_to_stderr)
368 def test_string_quotes(self) -> None:
369 source, expected = read_data("miscellaneous", "string_quotes")
370 mode = black.Mode(unstable=True)
371 assert_format(source, expected, mode)
372 mode = replace(mode, string_normalization=False)
373 not_normalized = fs(source, mode=mode)
374 self.assertFormatEqual(source.replace("\\\n", ""), not_normalized)
375 black.assert_equivalent(source, not_normalized)
376 black.assert_stable(source, not_normalized, mode=mode)
377
378 def test_skip_source_first_line(self) -> None:
379 source, _ = read_data("miscellaneous", "invalid_header")

Callers

nothing calls this directly

Calls 5

read_dataFunction · 0.90
assert_formatFunction · 0.90
replaceFunction · 0.85
assertFormatEqualMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected