Add unit tests for deprecated should_ignore_error method to verify warning and return value
This commit is contained in:
parent
c9e727b2bc
commit
122e6f1052
1 changed files with 7 additions and 0 deletions
7
tests/test_should_ignore_error.py
Normal file
7
tests/test_should_ignore_error.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue