From 830661bb43a788a6487478b4ee78689133d6dba2 Mon Sep 17 00:00:00 2001 From: OoO Date: Wed, 13 May 2026 16:12:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=88=E4=BD=8F=20app.py=20=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E6=96=B0=E5=A2=9E=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_phase3f_cleanup_contracts.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_phase3f_cleanup_contracts.py b/tests/test_phase3f_cleanup_contracts.py index 69c6b7c..c071d60 100644 --- a/tests/test_phase3f_cleanup_contracts.py +++ b/tests/test_phase3f_cleanup_contracts.py @@ -57,6 +57,12 @@ def test_phase3f_orphan_ai_services_stay_removed(): assert [path for path in orphan_services if (ROOT / path).exists()] == [] +def test_app_py_stays_blueprint_only_for_routes(): + app_source = (ROOT / "app.py").read_text(encoding="utf-8") + + assert "@app.route" not in app_source + + def test_active_guides_do_not_point_to_removed_ai_services(): active_guides = [ ROOT / "docs" / "ELEPHANT_ALPHA_SETUP.md",