forked from orbit-oss/flask
blinker is required, signals are always available
This commit is contained in:
parent
e1e4e82096
commit
9cb1a7a52d
18 changed files with 77 additions and 163 deletions
|
|
@ -10,11 +10,6 @@ from flask.json import jsonify
|
|||
from flask.testing import EnvironBuilder
|
||||
from flask.testing import FlaskCliRunner
|
||||
|
||||
try:
|
||||
import blinker
|
||||
except ImportError:
|
||||
blinker = None
|
||||
|
||||
|
||||
def test_environ_defaults_from_config(app, client):
|
||||
app.config["SERVER_NAME"] = "example.com:1234"
|
||||
|
|
@ -285,7 +280,6 @@ def test_json_request_and_response(app, client):
|
|||
assert rv.get_json() == json_data
|
||||
|
||||
|
||||
@pytest.mark.skipif(blinker is None, reason="blinker is not installed")
|
||||
def test_client_json_no_app_context(app, client):
|
||||
@app.route("/hello", methods=["POST"])
|
||||
def hello():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue