blinker is required, signals are always available

This commit is contained in:
David Lord 2023-04-13 07:34:14 -07:00
parent e1e4e82096
commit 9cb1a7a52d
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
18 changed files with 77 additions and 163 deletions

View file

@ -1,16 +1,5 @@
import pytest
try:
import blinker
except ImportError:
blinker = None
import flask
pytestmark = pytest.mark.skipif(
blinker is None, reason="Signals require the blinker library."
)
def test_template_rendered(app, client):
@app.route("/")

View file

@ -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():