From 4d226fd616f24f8e3663181b0774ea9aa5738a35 Mon Sep 17 00:00:00 2001 From: Tudor Date: Tue, 7 Jul 2026 13:36:01 +0100 Subject: [PATCH] test: drop unused fake exception helper Co-Authored-By: Claude Fable 5 --- backend/tests/test_sixth_form_flag.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/tests/test_sixth_form_flag.py b/backend/tests/test_sixth_form_flag.py index fb7c34c..af32799 100644 --- a/backend/tests/test_sixth_form_flag.py +++ b/backend/tests/test_sixth_form_flag.py @@ -121,11 +121,6 @@ def test_detail_payload_serializes_numpy_bool(monkeypatch): assert resp.json()["school_info"]["has_sixth_form"] is True -class _FakeProgrammingError(Exception): - """Stand-in for sqlalchemy.exc.ProgrammingError wrapping psycopg2's - UndefinedColumn, without needing a real DB connection to construct one.""" - - def test_load_school_data_survives_missing_has_sixth_form_column(monkeypatch): """Real prod state until the nightly pipeline first rebuilds the mart: marts.dim_school lacks has_sixth_form entirely. The first query raises