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

Method test_empty_ff

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

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

assertFormatEqualMethod · 0.80

Tested by

no test coverage detected