Add unit tests for deprecated should_ignore_error method to verify warning and return value

This commit is contained in:
Akarsh Singhal 2025-11-28 23:27:20 -05:00
parent c9e727b2bc
commit 122e6f1052

View file

@ -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