MCPcopy Create free account
hub / github.com/pallets/flask / test_run_cert_no_ssl

Function test_run_cert_no_ssl

tests/test_cli.py:641–645  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

639
640
641def test_run_cert_no_ssl(monkeypatch):
642 monkeypatch.setitem(sys.modules, "ssl", None)
643
644 with pytest.raises(click.BadParameter):
645 run_command.make_context("run", ["--cert", "not_here"])
646
647
648def test_cli_blueprints(app):

Callers

nothing calls this directly

Calls 1

make_contextMethod · 0.80

Tested by

no test coverage detected