(self)
| 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") |
nothing calls this directly
no test coverage detected