From 341a82bf1e87e124356ae4e8af03f59d348bda44 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 23 May 2026 01:37:21 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../unit_tests/extensions/test_ext_blueprints_openapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/tests/unit_tests/extensions/test_ext_blueprints_openapi.py b/api/tests/unit_tests/extensions/test_ext_blueprints_openapi.py index 61f9cceda5..76a61c9087 100644 --- a/api/tests/unit_tests/extensions/test_ext_blueprints_openapi.py +++ b/api/tests/unit_tests/extensions/test_ext_blueprints_openapi.py @@ -34,13 +34,13 @@ def fresh_openapi_cors_state() -> Iterator[None]: """ had_flag = hasattr(openapi_bp, "_dify_cors_applied") if had_flag: - delattr(openapi_bp, "_dify_cors_applied") + del openapi_bp._dify_cors_applied yield # Leave the blueprint in a clean state regardless of branch taken, # so unrelated tests that import the production blueprint do not # observe leaked state from this module. if hasattr(openapi_bp, "_dify_cors_applied"): - delattr(openapi_bp, "_dify_cors_applied") + del openapi_bp._dify_cors_applied def _build_app() -> DifyApp: