@@ -206,7 +206,9 @@ def test_deal_with_no_space_left_handles_broken_pipe_when_dest_full(
206206) -> None :
207207 """Broken pipe with a full destination should trigger expiration."""
208208 log_file = tmp_path / "2025-10-12-212400.log"
209- log_file .write_text ("rsync: [sender] write error: Broken pipe (32)\n " , encoding = "utf-8" )
209+ log_file .write_text (
210+ "rsync: [sender] write error: Broken pipe (32)\n " , encoding = "utf-8" ,
211+ )
210212
211213 backups = [
212214 "/dest/2025-10-11-120000" ,
@@ -222,7 +224,9 @@ def test_deal_with_no_space_left_handles_broken_pipe_when_dest_full(
222224 lambda path , ssh : expired .append (path ),
223225 )
224226
225- def fake_run_cmd (cmd : str , ssh : rsync_time_machine .SSH | None = None ) -> rsync_time_machine .CmdResult :
227+ def fake_run_cmd (
228+ cmd : str , ssh : rsync_time_machine .SSH | None = None ,
229+ ) -> rsync_time_machine .CmdResult :
226230 if cmd .startswith ("df -Pk" ):
227231 df_output = (
228232 "Filesystem 1024-blocks Used Available Capacity Mounted on\n "
@@ -250,12 +254,20 @@ def test_deal_with_no_space_left_ignores_broken_pipe_when_space_available(
250254) -> None :
251255 """Broken pipe without the destination filling up should not expire backups."""
252256 log_file = tmp_path / "2025-10-12-212400.log"
253- log_file .write_text ("rsync: [sender] write error: Broken pipe (32)\n " , encoding = "utf-8" )
257+ log_file .write_text (
258+ "rsync: [sender] write error: Broken pipe (32)\n " , encoding = "utf-8" ,
259+ )
254260
255- monkeypatch .setattr (rsync_time_machine , "find_backups" , Mock (return_value = ["/dest/2025-10-12-120000" , "/dest/2025-10-11-120000" ]))
261+ monkeypatch .setattr (
262+ rsync_time_machine ,
263+ "find_backups" ,
264+ Mock (return_value = ["/dest/2025-10-12-120000" , "/dest/2025-10-11-120000" ]),
265+ )
256266 monkeypatch .setattr (rsync_time_machine , "expire_backup" , Mock ())
257267
258- def fake_run_cmd (cmd : str , ssh : rsync_time_machine .SSH | None = None ) -> rsync_time_machine .CmdResult :
268+ def fake_run_cmd (
269+ cmd : str , ssh : rsync_time_machine .SSH | None = None ,
270+ ) -> rsync_time_machine .CmdResult :
259271 if cmd .startswith ("df -Pk" ):
260272 df_output = (
261273 "Filesystem 1024-blocks Used Available Capacity Mounted on\n "
0 commit comments