Home / Function/ test_run_cert_path() — flask Function Reference

test_run_cert_path() — flask Function Reference

Architecture documentation for the test_run_cert_path() function in test_cli.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  136f0024_244c_f574_1228_dbb035653409["test_run_cert_path()"]
  62c63da0_a9c3_ab0a_4c48_a9413eac90e3["test_cli.py"]
  136f0024_244c_f574_1228_dbb035653409 -->|defined in| 62c63da0_a9c3_ab0a_4c48_a9413eac90e3
  style 136f0024_244c_f574_1228_dbb035653409 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_cli.py lines 584–599

def test_run_cert_path():
    # no key
    with pytest.raises(click.BadParameter):
        run_command.make_context("run", ["--cert", __file__])

    # no cert
    with pytest.raises(click.BadParameter):
        run_command.make_context("run", ["--key", __file__])

    # cert specified first
    ctx = run_command.make_context("run", ["--cert", __file__, "--key", __file__])
    assert ctx.params["cert"] == (__file__, __file__)

    # key specified first
    ctx = run_command.make_context("run", ["--key", __file__, "--cert", __file__])
    assert ctx.params["cert"] == (__file__, __file__)

Subdomains

Defined In

Frequently Asked Questions

What does test_run_cert_path() do?
test_run_cert_path() is a function in the flask codebase, defined in tests/test_cli.py.
Where is test_run_cert_path() defined?
test_run_cert_path() is defined in tests/test_cli.py at line 584.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free