test_run_cert_adhoc() — flask Function Reference
Architecture documentation for the test_run_cert_adhoc() function in test_cli.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 27d1ac9b_2916_484c_5b4e_d6b89334b13f["test_run_cert_adhoc()"] 62c63da0_a9c3_ab0a_4c48_a9413eac90e3["test_cli.py"] 27d1ac9b_2916_484c_5b4e_d6b89334b13f -->|defined in| 62c63da0_a9c3_ab0a_4c48_a9413eac90e3 style 27d1ac9b_2916_484c_5b4e_d6b89334b13f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_cli.py lines 602–616
def test_run_cert_adhoc(monkeypatch):
monkeypatch.setitem(sys.modules, "cryptography", None)
# cryptography not installed
with pytest.raises(click.BadParameter):
run_command.make_context("run", ["--cert", "adhoc"])
# cryptography installed
monkeypatch.setitem(sys.modules, "cryptography", types.ModuleType("cryptography"))
ctx = run_command.make_context("run", ["--cert", "adhoc"])
assert ctx.params["cert"] == "adhoc"
# no key with adhoc
with pytest.raises(click.BadParameter):
run_command.make_context("run", ["--cert", "adhoc", "--key", __file__])
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_run_cert_adhoc() do?
test_run_cert_adhoc() is a function in the flask codebase, defined in tests/test_cli.py.
Where is test_run_cert_adhoc() defined?
test_run_cert_adhoc() is defined in tests/test_cli.py at line 602.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free