Home / Function/ test_config_missing_file() — flask Function Reference

test_config_missing_file() — flask Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_config.py lines 186–195

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

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free