(self)
| 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(): |
nothing calls this directly
no test coverage detected