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

Method test_pipe_force_py36

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

Source from the content-addressed store, hash-verified

1215 assert normal_cache.is_changed(path)
1216
1217 def test_pipe_force_py36(self) -> None:
1218 source, expected = read_data("miscellaneous", "force_py36")
1219 result = BlackRunner().invoke(
1220 black.main,
1221 ["-", "-q", "--target-version=py36"],
1222 input=BytesIO(source.encode("utf-8")),
1223 )
1224 self.assertEqual(result.exit_code, 0)
1225 actual = result.output
1226 self.assertFormatEqual(actual, expected)
1227
1228 @pytest.mark.incompatible_with_mypyc
1229 def test_reformat_one_with_stdin(self) -> None:

Callers

nothing calls this directly

Calls 3

read_dataFunction · 0.90
BlackRunnerClass · 0.85
assertFormatEqualMethod · 0.80

Tested by

no test coverage detected