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
Provenance
- Commit
75a9b74- Tree
dc7b530- Author
Martin Thoma <info@martin-thoma.de>- Committer
Martin Thoma <info@martin-thoma.de>- Parent
4e854ee
2 files changed+0 added−13 removed
modified:tests/test_cli.py-10 removed
42 unmodified lines43 assert testapp.cli.name == testapp.name44 45 46 def 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()48 49 class Module:50 app = Flask("appname")218 unmodified lines269 assert f"Werkzeug {werkzeug_version}" in out270 271 272 def 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 app41 unmodified lines318 assert app.name == "testapp"319 320 321 def test_with_appcontext(runner):324- """Test of with_appcontext."""325-322 @click.command()323 @with_appcontext324 def testcmd():325 click.echo(current_app.name)5 unmodified lines331 assert result.output == "testapp\n"332 333 334 def test_appgroup(runner):339- """Test of with_appcontext."""340-335 @click.group(cls=AppGroup)336 def cli():337 pass338 20 unmodified lines359 assert result.output == "testappgroup\n"360 361 362 def test_flaskgroup(runner):369- """Test FlaskGroup."""370-363 def create_app():364 return Flask("flaskgroup")365 366 @click.group(cls=FlaskGroup, create_app=create_app)10 unmodified lines377 378 379 @pytest.mark.parametrize("set_debug_flag", (True, False))380 def test_flaskgroup_debug(runner, set_debug_flag):389- """Test FlaskGroup debug flag behavior."""390-381 def create_app():382 app = Flask("flaskgroup")383 app.debug = True384 return app262 unmodified linesmodified:tests/test_helpers.py-3 removed
114 unmodified lines115 @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."""120-119 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_value124 125 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