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

Method test_check_diff_use_together

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

Source from the content-addressed store, hash-verified

1099
1100 @event_loop()
1101 def test_check_diff_use_together(self) -> None:
1102 with cache_dir():
1103 # Files which will be reformatted.
1104 src1 = get_case_path("miscellaneous", "string_quotes")
1105 self.invokeBlack([str(src1), "--diff", "--check"], exit_code=1)
1106 # Files which will not be reformatted.
1107 src2 = get_case_path("cases", "composition")
1108 self.invokeBlack([str(src2), "--diff", "--check"])
1109 # Multi file command.
1110 self.invokeBlack([str(src1), str(src2), "--diff", "--check"], exit_code=1)
1111
1112 def test_no_src_fails(self) -> None:
1113 with cache_dir():

Callers

nothing calls this directly

Calls 2

get_case_pathFunction · 0.90
cache_dirFunction · 0.85

Tested by

no test coverage detected