test_config_from_envvar_missing() — flask Function Reference
Architecture documentation for the test_config_from_envvar_missing() function in test_config.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 5600f560_9825_9bf0_d301_f9f6a8046a6e["test_config_from_envvar_missing()"] af09ffc0_0dff_d9d9_7274_4611c3d0d0e6["test_config.py"] 5600f560_9825_9bf0_d301_f9f6a8046a6e -->|defined in| af09ffc0_0dff_d9d9_7274_4611c3d0d0e6 style 5600f560_9825_9bf0_d301_f9f6a8046a6e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_config.py lines 161–171
def test_config_from_envvar_missing(monkeypatch):
monkeypatch.setattr("os.environ", {"FOO_SETTINGS": "missing.cfg"})
app = flask.Flask(__name__)
with pytest.raises(IOError) as e:
app.config.from_envvar("FOO_SETTINGS")
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_envvar("FOO_SETTINGS", silent=True)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_config_from_envvar_missing() do?
test_config_from_envvar_missing() is a function in the flask codebase, defined in tests/test_config.py.
Where is test_config_from_envvar_missing() defined?
test_config_from_envvar_missing() is defined in tests/test_config.py at line 161.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free