fix(tests): drop test_post_apply_without_backup_rejected (gate retired in 5535677)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -83,24 +83,11 @@ async def test_post_ingest_accepts_multipart_file(client, monkeypatch):
|
|||||||
assert resp.status_code == 202
|
assert resp.status_code == 202
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
# Retired 2026-05-24: `test_post_apply_without_backup_rejected` asserted
|
||||||
async def test_post_apply_without_backup_rejected(client, monkeypatch):
|
# the migration backup-gate rejected applies without a recent backup.
|
||||||
monkeypatch.setattr(
|
# That gate was removed in commit 5535677 (_APPLY_KINDS is now empty,
|
||||||
"backend.app.api.migrate._has_recent_pre_migration_backup",
|
# FC-3h will own backup as a first-class feature) so the test was
|
||||||
lambda: False,
|
# testing dead behavior. Removed rather than rewritten.
|
||||||
)
|
|
||||||
export = {
|
|
||||||
"source_app": "gallerysubscriber", "schema_version": 1,
|
|
||||||
"subscriptions": [], "credentials": [],
|
|
||||||
}
|
|
||||||
resp = await client.post(
|
|
||||||
"/api/migrate/gs_ingest",
|
|
||||||
form={"dry_run": "false"},
|
|
||||||
files={"export_file": _file_storage(export, "gs-export.json")},
|
|
||||||
)
|
|
||||||
assert resp.status_code == 400
|
|
||||||
body = await resp.get_json()
|
|
||||||
assert body["error"] == "no_backup"
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
|||||||
Reference in New Issue
Block a user