style: ruff format test_deploy_broker.py
CI / check (pull_request) Successful in 1m48s

This commit is contained in:
Christian Manivong committed 2026-10-20 22:38:11 +02:00
1 parent 7e4fff8025
commit b93a258efc
1 file changed
+6 -2
+6 -2
View File
@@ -29,11 +29,15 @@ exit 0
"""
def _deploy(tmp_path: Path, broker_exit: int = 0) -> tuple[subprocess.CompletedProcess[str], list[str]]:
def _deploy(
tmp_path: Path, broker_exit: int = 0
) -> tuple[subprocess.CompletedProcess[str], list[str]]:
bin_dir = tmp_path / "bin"
bin_dir.mkdir()
fake = bin_dir / "ssh"
fake.write_text(_FAKE_SSH.replace("{state}", str(tmp_path)).replace("{broker_exit}", str(broker_exit)))
fake.write_text(
_FAKE_SSH.replace("{state}", str(tmp_path)).replace("{broker_exit}", str(broker_exit))
)
fake.chmod(0o755)
result = subprocess.run(
["bash", str(DEPLOY), "testhost"],