forked from orbit-oss/flask
restore and deprecate json_available
This commit is contained in:
parent
1b4ace9ba5
commit
1617202d91
4 changed files with 54 additions and 1 deletions
12
tests/test_deprecations.py
Normal file
12
tests/test_deprecations.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import pytest
|
||||
|
||||
from flask import json_available
|
||||
|
||||
|
||||
def test_json_available():
|
||||
with pytest.deprecated_call() as rec:
|
||||
assert json_available
|
||||
assert json_available == True # noqa E712
|
||||
assert json_available != False # noqa E712
|
||||
|
||||
assert len(rec.list) == 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue