Home / Function/ test_flaskgroup_app_context() — flask Function Reference

test_flaskgroup_app_context() — flask Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  285969ef_67f4_82b7_58a0_8b945fe6dbaa["test_flaskgroup_app_context()"]
  62c63da0_a9c3_ab0a_4c48_a9413eac90e3["test_cli.py"]
  285969ef_67f4_82b7_58a0_8b945fe6dbaa -->|defined in| 62c63da0_a9c3_ab0a_4c48_a9413eac90e3
  870b03e5_c961_237d_d703_442267b4ac04["create_app()"]
  285969ef_67f4_82b7_58a0_8b945fe6dbaa -->|calls| 870b03e5_c961_237d_d703_442267b4ac04
  cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac["invoke()"]
  285969ef_67f4_82b7_58a0_8b945fe6dbaa -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac
  style 285969ef_67f4_82b7_58a0_8b945fe6dbaa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_cli.py lines 348–362

def test_flaskgroup_app_context(runner):
    def create_app():
        return Flask("flaskgroup")

    @click.group(cls=FlaskGroup, create_app=create_app)
    def cli(**params):
        pass

    @cli.command()
    def test():
        click.echo(current_app.name)

    result = runner.invoke(cli, ["test"])
    assert result.exit_code == 0
    assert result.output == "flaskgroup\n"

Subdomains

Defined In

Frequently Asked Questions

What does test_flaskgroup_app_context() do?
test_flaskgroup_app_context() is a function in the flask codebase, defined in tests/test_cli.py.
Where is test_flaskgroup_app_context() defined?
test_flaskgroup_app_context() is defined in tests/test_cli.py at line 348.
What does test_flaskgroup_app_context() call?
test_flaskgroup_app_context() calls 2 function(s): create_app, invoke.

Analyze Your Own Codebase

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

Try Supermodel Free