Home / Function/ test_config_from_class() — flask Function Reference

test_config_from_class() — flask Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ff837e58_4dce_e197_dbda_5c1f7b845902["test_config_from_class()"]
  af09ffc0_0dff_d9d9_7274_4611c3d0d0e6["test_config.py"]
  ff837e58_4dce_e197_dbda_5c1f7b845902 -->|defined in| af09ffc0_0dff_d9d9_7274_4611c3d0d0e6
  962769bb_e427_394b_6793_a30861454cc0["common_object_test()"]
  ff837e58_4dce_e197_dbda_5c1f7b845902 -->|calls| 962769bb_e427_394b_6793_a30861454cc0
  style ff837e58_4dce_e197_dbda_5c1f7b845902 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_config.py lines 132–141

def test_config_from_class():
    class Base:
        TEST_KEY = "foo"

    class Test(Base):
        SECRET_KEY = "config"

    app = flask.Flask(__name__)
    app.config.from_object(Test)
    common_object_test(app)

Subdomains

Frequently Asked Questions

What does test_config_from_class() do?
test_config_from_class() is a function in the flask codebase, defined in tests/test_config.py.
Where is test_config_from_class() defined?
test_config_from_class() is defined in tests/test_config.py at line 132.
What does test_config_from_class() call?
test_config_from_class() 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