Home / Function/ test_flaskgroup_nested() — flask Function Reference

test_flaskgroup_nested() — flask Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_cli.py lines 385–395

def test_flaskgroup_nested(app, runner):
    cli = click.Group("cli")
    flask_group = FlaskGroup(name="flask", create_app=lambda: app)
    cli.add_command(flask_group)

    @flask_group.command()
    def show():
        click.echo(current_app.name)

    result = runner.invoke(cli, ["flask", "show"])
    assert result.output == "flask_test\n"

Subdomains

Defined In

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free