test_run_from_config() — flask Function Reference
Architecture documentation for the test_run_from_config() function in test_basic.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD a5075dd1_3dc2_2754_02b5_0274f06e6614["test_run_from_config()"] 87d0a57b_be56_0b28_72a0_f6bd7a6fd678["test_basic.py"] a5075dd1_3dc2_2754_02b5_0274f06e6614 -->|defined in| 87d0a57b_be56_0b28_72a0_f6bd7a6fd678 style a5075dd1_3dc2_2754_02b5_0274f06e6614 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_basic.py lines 1894–1903
def test_run_from_config(
monkeypatch, host, port, server_name, expect_host, expect_port, app
):
def run_simple_mock(hostname, port, *args, **kwargs):
assert hostname == expect_host
assert port == expect_port
monkeypatch.setattr(werkzeug.serving, "run_simple", run_simple_mock)
app.config["SERVER_NAME"] = server_name
app.run(host, port)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_run_from_config() do?
test_run_from_config() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_run_from_config() defined?
test_run_from_config() is defined in tests/test_basic.py at line 1894.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free