Skip to content
Myr

DOC: Remove unnecessary docstrings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Martin Thoma · committed by Martin Thoma · parent 4e854ee · Browse files · 2 files+0 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+0 added−13 removed

  • tests:+0 added−13 removed

2 files+0 added−13 removed

modified:tests/test_cli.py-10 removed
42 unmodified lines
43 assert testapp.cli.name == testapp.name444546def test_find_best_app(test_apps):47 """Test if `find_best_app` behaves as expected with different combinations of input.""" # noqa: B95047 script_info = ScriptInfo()4849 class Module:50 app = Flask("appname")
218 unmodified lines
269 assert f"Werkzeug {werkzeug_version}" in out270271272def test_scriptinfo(test_apps, monkeypatch):274 """Test of ScriptInfo."""273 obj = ScriptInfo(app_import_path="cliapp.app:testapp")274 app = obj.load_app()275 assert app.name == "testapp"276 assert obj.load_app() is app
41 unmodified lines
318 assert app.name == "testapp"319320321def test_with_appcontext(runner):324 """Test of with_appcontext."""325322 @click.command()323 @with_appcontext324 def testcmd():325 click.echo(current_app.name)
5 unmodified lines
331 assert result.output == "testapp\n"332333334def test_appgroup(runner):339 """Test of with_appcontext."""340335 @click.group(cls=AppGroup)336 def cli():337 pass338
20 unmodified lines
359 assert result.output == "testappgroup\n"360361362def test_flaskgroup(runner):369 """Test FlaskGroup."""370363 def create_app():364 return Flask("flaskgroup")365366 @click.group(cls=FlaskGroup, create_app=create_app)
10 unmodified lines
377378379@pytest.mark.parametrize("set_debug_flag", (True, False))380def test_flaskgroup_debug(runner, set_debug_flag):389 """Test FlaskGroup debug flag behavior."""390381 def create_app():382 app = Flask("flaskgroup")383 app.debug = True384 return app
262 unmodified lines
modified:tests/test_helpers.py-3 removed
114 unmodified lines
115 @pytest.mark.parametrize(116 "test_value", [0, -1, 1, 23, 3.14, "s", "longer string", True, False, None]117 )118 def test_jsonify_basic_types(self, test_value, app, client):119 """Test jsonify with basic types."""120119 url = "/jsonify_basic_types"120 app.add_url_rule(url, url, lambda x=test_value: flask.jsonify(x))121 rv = client.get(url)122 assert rv.mimetype == "application/json"123 assert flask.json.loads(rv.data) == test_value124125 def test_jsonify_dicts(self, app, client):128 """Test jsonify with dicts and kwargs unpacking."""126 d = {127 "a": 0,128 "b": 23,129 "c": 3.14,
868 unmodified lines