Home / Function/ test_config_missing() — flask Function Reference

test_config_missing() — flask Function Reference

Architecture documentation for the test_config_missing() function in test_config.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  a7eab382_929c_d11c_b33d_21c00023b139["test_config_missing()"]
  af09ffc0_0dff_d9d9_7274_4611c3d0d0e6["test_config.py"]
  a7eab382_929c_d11c_b33d_21c00023b139 -->|defined in| af09ffc0_0dff_d9d9_7274_4611c3d0d0e6
  style a7eab382_929c_d11c_b33d_21c00023b139 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_config.py lines 174–183

def test_config_missing():
    app = flask.Flask(__name__)
    with pytest.raises(IOError) as e:
        app.config.from_pyfile("missing.cfg")
    msg = str(e.value)
    assert msg.startswith(
        "[Errno 2] Unable to load configuration file (No such file or directory):"
    )
    assert msg.endswith("missing.cfg'")
    assert not app.config.from_pyfile("missing.cfg", silent=True)

Subdomains

Frequently Asked Questions

What does test_config_missing() do?
test_config_missing() is a function in the flask codebase, defined in tests/test_config.py.
Where is test_config_missing() defined?
test_config_missing() is defined in tests/test_config.py at line 174.

Analyze Your Own Codebase

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

Try Supermodel Free