From 122e6f10522d018f6bbb8241b1d0a1851316d75e Mon Sep 17 00:00:00 2001 From: Akarsh Singhal <83413214+akarshsinghal@users.noreply.github.com> Date: Fri, 28 Nov 2025 23:27:20 -0500 Subject: [PATCH] Add unit tests for deprecated should_ignore_error method to verify warning and return value --- tests/test_should_ignore_error.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/test_should_ignore_error.py diff --git a/tests/test_should_ignore_error.py b/tests/test_should_ignore_error.py new file mode 100644 index 00000000..fd06436b --- /dev/null +++ b/tests/test_should_ignore_error.py @@ -0,0 +1,7 @@ +import pytest +from flask import Flask + +def test_should_ignore_error_deprecation_warning(): + app = Flask(__name__) + with pytest.warns(DeprecationWarning): + assert app.should_ignore_error(None) is False \ No newline at end of file