From 4051899b9bca9da540f1783d9ed2d8e5440a5fd0 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 23 Sep 2026 13:33:58 +0300 Subject: [PATCH] =?UTF-8?q?test(backend):=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D1=8F=D0=BA=D0=BE=D1=80=D1=8F=20=D0=BC?= =?UTF-8?q?=D1=83=D1=82=D0=B0=D1=86=D0=B8=D0=B9=20upload=20(#625)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: #625 User-Visible: no --- scripts/mutation-registry.mjs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/scripts/mutation-registry.mjs b/scripts/mutation-registry.mjs index 6812f806..a5539622 100644 --- a/scripts/mutation-registry.mjs +++ b/scripts/mutation-registry.mjs @@ -7619,7 +7619,11 @@ const MUTANT_DEFINITIONS = [ + 'capacity_exceeded may produce HTTP 507 (#440 AC4)', patches: [{ file: 'custom_components/houseplan/http_api.py', - find: ' status = 507 if err.code == "capacity_exceeded" else 400\n', + find: ' status = (\n' + + ' 507 if err.code == "capacity_exceeded"\n' + + ' else 413 if err.code == "too_large"\n' + + ' else 400\n' + + ' )\n', replace: ' status = 507\n', }], }, @@ -10074,8 +10078,11 @@ const MUTANT_DEFINITIONS = [ + 'and as incoming refuses the last file that still fits (#498 AC1)', patches: [{ file: 'custom_components/houseplan/http_api.py', - find: ' MAX_FILES_BYTES, MAX_FILES_COUNT, exclude=tmp_path,\n', - replace: ' MAX_FILES_BYTES, MAX_FILES_COUNT,\n', + find: ' MAX_FILES_BYTES,\n' + + ' MAX_FILES_COUNT,\n' + + ' exclude=tmp_path,\n', + replace: ' MAX_FILES_BYTES,\n' + + ' MAX_FILES_COUNT,\n', }], }, { @@ -10100,8 +10107,8 @@ const MUTANT_DEFINITIONS = [ + 'size again rejects a rename even when the real reserve is intact (#554 AC5)', patches: [{ file: 'custom_components/houseplan/http_api.py', - find: ' additional_disk_bytes=0,\n', - replace: ' # mutant: staged bytes are reserved a second time\n', + find: ' additional_disk_bytes=0,\n', + replace: ' # mutant: staged bytes are reserved a second time\n', }], }, {