Home / Function/ test_from_prefixed_env_custom_prefix() — flask Function Reference

test_from_prefixed_env_custom_prefix() — flask Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_config.py lines 69–76

def test_from_prefixed_env_custom_prefix(monkeypatch):
    monkeypatch.setenv("FLASK_A", "a")
    monkeypatch.setenv("NOT_FLASK_A", "b")

    app = flask.Flask(__name__)
    app.config.from_prefixed_env("NOT_FLASK")

    assert app.config["A"] == "b"

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free