(self)
| 137 | invokeBlack = staticmethod(invokeBlack) |
| 138 | |
| 139 | def test_empty_ff(self) -> None: |
| 140 | expected = "" |
| 141 | tmp_file = Path(black.dump_to_file()) |
| 142 | try: |
| 143 | self.assertFalse(ff(tmp_file, write_back=black.WriteBack.YES)) |
| 144 | actual = tmp_file.read_text(encoding="utf-8") |
| 145 | finally: |
| 146 | os.unlink(tmp_file) |
| 147 | self.assertFormatEqual(expected, actual) |
| 148 | |
| 149 | @patch("black.dump_to_file", dump_to_stderr) |
| 150 | def test_one_empty_line(self) -> None: |
nothing calls this directly
no test coverage detected