MCPcopy
hub / github.com/pallets/flask / test_help_echo_loading_error

Function test_help_echo_loading_error

tests/test_cli.py:413–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411
412
413def test_help_echo_loading_error():
414 from flask.cli import cli
415
416 try:
417 runner = CliRunner(mix_stderr=False)
418 except (DeprecationWarning, TypeError):
419 # Click >= 8.2
420 runner = CliRunner()
421
422 result = runner.invoke(cli, ["--help"])
423 assert result.exit_code == 0
424 assert "FLASK_APP" in result.stderr
425 assert "Usage:" in result.stdout
426
427
428def test_help_echo_exception():

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected