forked from orbit-oss/flask
Merge pull request #3699 from MartinThoma/style
remove unnecessary docstrings from tests
This commit is contained in:
commit
37551e6798
2 changed files with 0 additions and 13 deletions
|
|
@ -44,7 +44,6 @@ def test_cli_name(test_apps):
|
||||||
|
|
||||||
|
|
||||||
def test_find_best_app(test_apps):
|
def test_find_best_app(test_apps):
|
||||||
"""Test if `find_best_app` behaves as expected with different combinations of input.""" # noqa: B950
|
|
||||||
script_info = ScriptInfo()
|
script_info = ScriptInfo()
|
||||||
|
|
||||||
class Module:
|
class Module:
|
||||||
|
|
@ -271,7 +270,6 @@ def test_get_version(test_apps, capsys):
|
||||||
|
|
||||||
|
|
||||||
def test_scriptinfo(test_apps, monkeypatch):
|
def test_scriptinfo(test_apps, monkeypatch):
|
||||||
"""Test of ScriptInfo."""
|
|
||||||
obj = ScriptInfo(app_import_path="cliapp.app:testapp")
|
obj = ScriptInfo(app_import_path="cliapp.app:testapp")
|
||||||
app = obj.load_app()
|
app = obj.load_app()
|
||||||
assert app.name == "testapp"
|
assert app.name == "testapp"
|
||||||
|
|
@ -321,8 +319,6 @@ def test_scriptinfo(test_apps, monkeypatch):
|
||||||
|
|
||||||
|
|
||||||
def test_with_appcontext(runner):
|
def test_with_appcontext(runner):
|
||||||
"""Test of with_appcontext."""
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@with_appcontext
|
@with_appcontext
|
||||||
def testcmd():
|
def testcmd():
|
||||||
|
|
@ -336,8 +332,6 @@ def test_with_appcontext(runner):
|
||||||
|
|
||||||
|
|
||||||
def test_appgroup(runner):
|
def test_appgroup(runner):
|
||||||
"""Test of with_appcontext."""
|
|
||||||
|
|
||||||
@click.group(cls=AppGroup)
|
@click.group(cls=AppGroup)
|
||||||
def cli():
|
def cli():
|
||||||
pass
|
pass
|
||||||
|
|
@ -366,8 +360,6 @@ def test_appgroup(runner):
|
||||||
|
|
||||||
|
|
||||||
def test_flaskgroup(runner):
|
def test_flaskgroup(runner):
|
||||||
"""Test FlaskGroup."""
|
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
return Flask("flaskgroup")
|
return Flask("flaskgroup")
|
||||||
|
|
||||||
|
|
@ -386,8 +378,6 @@ def test_flaskgroup(runner):
|
||||||
|
|
||||||
@pytest.mark.parametrize("set_debug_flag", (True, False))
|
@pytest.mark.parametrize("set_debug_flag", (True, False))
|
||||||
def test_flaskgroup_debug(runner, set_debug_flag):
|
def test_flaskgroup_debug(runner, set_debug_flag):
|
||||||
"""Test FlaskGroup debug flag behavior."""
|
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
app = Flask("flaskgroup")
|
app = Flask("flaskgroup")
|
||||||
app.debug = True
|
app.debug = True
|
||||||
|
|
|
||||||
|
|
@ -116,8 +116,6 @@ class TestJSON:
|
||||||
"test_value", [0, -1, 1, 23, 3.14, "s", "longer string", True, False, None]
|
"test_value", [0, -1, 1, 23, 3.14, "s", "longer string", True, False, None]
|
||||||
)
|
)
|
||||||
def test_jsonify_basic_types(self, test_value, app, client):
|
def test_jsonify_basic_types(self, test_value, app, client):
|
||||||
"""Test jsonify with basic types."""
|
|
||||||
|
|
||||||
url = "/jsonify_basic_types"
|
url = "/jsonify_basic_types"
|
||||||
app.add_url_rule(url, url, lambda x=test_value: flask.jsonify(x))
|
app.add_url_rule(url, url, lambda x=test_value: flask.jsonify(x))
|
||||||
rv = client.get(url)
|
rv = client.get(url)
|
||||||
|
|
@ -125,7 +123,6 @@ class TestJSON:
|
||||||
assert flask.json.loads(rv.data) == test_value
|
assert flask.json.loads(rv.data) == test_value
|
||||||
|
|
||||||
def test_jsonify_dicts(self, app, client):
|
def test_jsonify_dicts(self, app, client):
|
||||||
"""Test jsonify with dicts and kwargs unpacking."""
|
|
||||||
d = {
|
d = {
|
||||||
"a": 0,
|
"a": 0,
|
||||||
"b": 23,
|
"b": 23,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue