mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
test(backend): обновить якоря мутаций upload (#625)
Issue: #625 User-Visible: no
This commit is contained in:
@@ -7619,7 +7619,11 @@ const MUTANT_DEFINITIONS = [
|
|||||||
+ 'capacity_exceeded may produce HTTP 507 (#440 AC4)',
|
+ 'capacity_exceeded may produce HTTP 507 (#440 AC4)',
|
||||||
patches: [{
|
patches: [{
|
||||||
file: 'custom_components/houseplan/http_api.py',
|
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',
|
replace: ' status = 507\n',
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
@@ -10074,8 +10078,11 @@ const MUTANT_DEFINITIONS = [
|
|||||||
+ 'and as incoming refuses the last file that still fits (#498 AC1)',
|
+ 'and as incoming refuses the last file that still fits (#498 AC1)',
|
||||||
patches: [{
|
patches: [{
|
||||||
file: 'custom_components/houseplan/http_api.py',
|
file: 'custom_components/houseplan/http_api.py',
|
||||||
find: ' MAX_FILES_BYTES, MAX_FILES_COUNT, exclude=tmp_path,\n',
|
find: ' MAX_FILES_BYTES,\n'
|
||||||
replace: ' MAX_FILES_BYTES, MAX_FILES_COUNT,\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)',
|
+ 'size again rejects a rename even when the real reserve is intact (#554 AC5)',
|
||||||
patches: [{
|
patches: [{
|
||||||
file: 'custom_components/houseplan/http_api.py',
|
file: 'custom_components/houseplan/http_api.py',
|
||||||
find: ' additional_disk_bytes=0,\n',
|
find: ' additional_disk_bytes=0,\n',
|
||||||
replace: ' # mutant: staged bytes are reserved a second time\n',
|
replace: ' # mutant: staged bytes are reserved a second time\n',
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user