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

Method test_pipe_force_pyi

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

Source from the content-addressed store, hash-verified

1167 assert normal_cache.is_changed(path)
1168
1169 def test_pipe_force_pyi(self) -> None:
1170 source, expected = read_data("miscellaneous", "force_pyi")
1171 result = BlackRunner().invoke(
1172 black.main, ["-", "-q", "--pyi"], input=BytesIO(source.encode("utf-8"))
1173 )
1174 self.assertEqual(result.exit_code, 0)
1175 actual = result.output
1176 self.assertFormatEqual(actual, expected)
1177
1178 def test_single_file_force_py36(self) -> None:
1179 reg_mode = DEFAULT_MODE

Callers

nothing calls this directly

Calls 3

read_dataFunction · 0.90
BlackRunnerClass · 0.85
assertFormatEqualMethod · 0.80

Tested by

no test coverage detected