From b1d68929c5a656c5bd9fe5a0a1bf77a607eae735 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 24 May 2026 20:15:10 -0400 Subject: [PATCH] fix(tests): drop test_post_apply_without_backup_rejected (gate retired in 5535677) Co-Authored-By: Claude Opus 4.7 (1M context) --- tests/test_api_migrate.py | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/tests/test_api_migrate.py b/tests/test_api_migrate.py index dffb529..bb83c9b 100644 --- a/tests/test_api_migrate.py +++ b/tests/test_api_migrate.py @@ -83,24 +83,11 @@ async def test_post_ingest_accepts_multipart_file(client, monkeypatch): assert resp.status_code == 202 -@pytest.mark.asyncio -async def test_post_apply_without_backup_rejected(client, monkeypatch): - monkeypatch.setattr( - "backend.app.api.migrate._has_recent_pre_migration_backup", - lambda: False, - ) - 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" +# Retired 2026-05-24: `test_post_apply_without_backup_rejected` asserted +# the migration backup-gate rejected applies without a recent backup. +# That gate was removed in commit 5535677 (_APPLY_KINDS is now empty, +# FC-3h will own backup as a first-class feature) so the test was +# testing dead behavior. Removed rather than rewritten. @pytest.mark.asyncio