fix(fc3h): split semicolon-stacked statements (E702) and bridge v-dialog v-model to avoid prop write

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-24 23:37:06 -04:00
parent e78a35d333
commit 718cc79905
6 changed files with 32 additions and 12 deletions
+2 -1
View File
@@ -263,7 +263,8 @@ async def test_delete_wrong_confirm_400(client, _seed_runs):
async def test_delete_correct_confirm_204(client, _seed_runs, db_sync):
list_resp = await client.get("/api/system/backup/runs?limit=1")
row = (await list_resp.get_json())["runs"][0]
rid = row["id"]; kind = row["kind"]
rid = row["id"]
kind = row["kind"]
resp = await client.delete(
f"/api/system/backup/runs/{rid}",
+6 -3
View File
@@ -145,9 +145,12 @@ def test_restore_images_untar_to_parent(tmp_path, fake_subprocess):
def test_unlink_removes_present_files_and_reports(tmp_path):
sql = tmp_path / "x.sql"; sql.write_bytes(b"x")
tar = tmp_path / "x.tar.zst"; tar.write_bytes(b"x")
manifest = tmp_path / "x.json"; manifest.write_text("{}")
sql = tmp_path / "x.sql"
sql.write_bytes(b"x")
tar = tmp_path / "x.tar.zst"
tar.write_bytes(b"x")
manifest = tmp_path / "x.json"
manifest.write_text("{}")
result = backup_service.unlink_artifact_files(
sql_path=str(sql), tar_path=str(tar), manifest_path=str(manifest),
)
+5 -2
View File
@@ -30,7 +30,9 @@ def fake_subprocess_and_images_root(monkeypatch, tmp_path):
)
class _FakeProc:
returncode = 0; stdout = b""; stderr = b""
returncode = 0
stdout = b""
stderr = b""
def _fake_run(cmd, **kwargs):
if cmd[0] == "pg_dump":
@@ -54,7 +56,8 @@ def _seed_backup(db_sync, *, kind, status, started_at, tag=None,
tar_path="/tmp/fake.tar.zst" if kind == "images" else None,
manifest={},
)
db_sync.add(row); db_sync.flush()
db_sync.add(row)
db_sync.flush()
return row.id