test_config_from_mapping() — flask Function Reference
Architecture documentation for the test_config_from_mapping() function in test_config.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 1fdcc3ec_05ed_3ec5_9de7_644890dcf26a["test_config_from_mapping()"] af09ffc0_0dff_d9d9_7274_4611c3d0d0e6["test_config.py"] 1fdcc3ec_05ed_3ec5_9de7_644890dcf26a -->|defined in| af09ffc0_0dff_d9d9_7274_4611c3d0d0e6 962769bb_e427_394b_6793_a30861454cc0["common_object_test()"] 1fdcc3ec_05ed_3ec5_9de7_644890dcf26a -->|calls| 962769bb_e427_394b_6793_a30861454cc0 style 1fdcc3ec_05ed_3ec5_9de7_644890dcf26a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_config.py lines 110–129
def test_config_from_mapping():
app = flask.Flask(__name__)
app.config.from_mapping({"SECRET_KEY": "config", "TEST_KEY": "foo"})
common_object_test(app)
app = flask.Flask(__name__)
app.config.from_mapping([("SECRET_KEY", "config"), ("TEST_KEY", "foo")])
common_object_test(app)
app = flask.Flask(__name__)
app.config.from_mapping(SECRET_KEY="config", TEST_KEY="foo")
common_object_test(app)
app = flask.Flask(__name__)
app.config.from_mapping(SECRET_KEY="config", TEST_KEY="foo", skip_key="skip")
common_object_test(app)
app = flask.Flask(__name__)
with pytest.raises(TypeError):
app.config.from_mapping({}, {})
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_config_from_mapping() do?
test_config_from_mapping() is a function in the flask codebase, defined in tests/test_config.py.
Where is test_config_from_mapping() defined?
test_config_from_mapping() is defined in tests/test_config.py at line 110.
What does test_config_from_mapping() call?
test_config_from_mapping() 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