test_config_from_file_toml() — flask Function Reference
Architecture documentation for the test_config_from_file_toml() function in test_config.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD a80a87ff_3e3d_d30b_dec6_303e38d5f221["test_config_from_file_toml()"] af09ffc0_0dff_d9d9_7274_4611c3d0d0e6["test_config.py"] a80a87ff_3e3d_d30b_dec6_303e38d5f221 -->|defined in| af09ffc0_0dff_d9d9_7274_4611c3d0d0e6 962769bb_e427_394b_6793_a30861454cc0["common_object_test()"] a80a87ff_3e3d_d30b_dec6_303e38d5f221 -->|calls| 962769bb_e427_394b_6793_a30861454cc0 style a80a87ff_3e3d_d30b_dec6_303e38d5f221 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_config.py lines 38–45
def test_config_from_file_toml():
tomllib = pytest.importorskip("tomllib", reason="tomllib added in 3.11")
app = flask.Flask(__name__)
current_dir = os.path.dirname(os.path.abspath(__file__))
app.config.from_file(
os.path.join(current_dir, "static", "config.toml"), tomllib.load, text=False
)
common_object_test(app)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_config_from_file_toml() do?
test_config_from_file_toml() is a function in the flask codebase, defined in tests/test_config.py.
Where is test_config_from_file_toml() defined?
test_config_from_file_toml() is defined in tests/test_config.py at line 38.
What does test_config_from_file_toml() call?
test_config_from_file_toml() calls 1 function(s): common_object_test.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free