"""路由契约快照:守护全部 API 路径与 HTTP 方法不变。""" import pytest from tests.contract.helpers import collect_routes, compare_snapshot pytestmark = pytest.mark.contract def test_routes_snapshot(): compare_snapshot("routes.json", collect_routes())