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

Function test_no_command_echo_loading_error

tests/test_cli.py:398–410  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

396
397
398def test_no_command_echo_loading_error():
399 from flask.cli import cli
400
401 try:
402 runner = CliRunner(mix_stderr=False)
403 except (DeprecationWarning, TypeError):
404 # Click >= 8.2
405 runner = CliRunner()
406
407 result = runner.invoke(cli, ["missing"])
408 assert result.exit_code == 2
409 assert "FLASK_APP" in result.stderr
410 assert "Usage:" in result.stderr
411
412
413def test_help_echo_loading_error():

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected