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