Home / Function/ test_get_version() — flask Function Reference

test_get_version() — flask Function Reference

Architecture documentation for the test_get_version() function in test_cli.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  e2bd1b6a_f0c6_02ab_845c_b3fc030d9898["test_get_version()"]
  62c63da0_a9c3_ab0a_4c48_a9413eac90e3["test_cli.py"]
  e2bd1b6a_f0c6_02ab_845c_b3fc030d9898 -->|defined in| 62c63da0_a9c3_ab0a_4c48_a9413eac90e3
  fd65263f_71cb_ab95_567f_5cb85abeb942["exit()"]
  e2bd1b6a_f0c6_02ab_845c_b3fc030d9898 -->|calls| fd65263f_71cb_ab95_567f_5cb85abeb942
  style e2bd1b6a_f0c6_02ab_845c_b3fc030d9898 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_cli.py lines 231–244

def test_get_version(test_apps, capsys):
    class MockCtx:
        resilient_parsing = False
        color = None

        def exit(self):
            return

    ctx = MockCtx()
    get_version(ctx, None, "test")
    out, err = capsys.readouterr()
    assert f"Python {platform.python_version()}" in out
    assert f"Flask {importlib.metadata.version('flask')}" in out
    assert f"Werkzeug {importlib.metadata.version('werkzeug')}" in out

Subdomains

Defined In

Calls

Frequently Asked Questions

What does test_get_version() do?
test_get_version() is a function in the flask codebase, defined in tests/test_cli.py.
Where is test_get_version() defined?
test_get_version() is defined in tests/test_cli.py at line 231.
What does test_get_version() call?
test_get_version() calls 1 function(s): exit.

Analyze Your Own Codebase

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

Try Supermodel Free