test_appgroup_app_context() — flask Function Reference
Architecture documentation for the test_appgroup_app_context() function in test_cli.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 9788bd77_74ff_0d16_46c8_f7a9ffdaaa4c["test_appgroup_app_context()"] 62c63da0_a9c3_ab0a_4c48_a9413eac90e3["test_cli.py"] 9788bd77_74ff_0d16_46c8_f7a9ffdaaa4c -->|defined in| 62c63da0_a9c3_ab0a_4c48_a9413eac90e3 cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac["invoke()"] 9788bd77_74ff_0d16_46c8_f7a9ffdaaa4c -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac style 9788bd77_74ff_0d16_46c8_f7a9ffdaaa4c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_cli.py lines 320–345
def test_appgroup_app_context(runner):
@click.group(cls=AppGroup)
def cli():
pass
@cli.command()
def test():
click.echo(current_app.name)
@cli.group()
def subgroup():
pass
@subgroup.command()
def test2():
click.echo(current_app.name)
obj = ScriptInfo(create_app=lambda: Flask("testappgroup"))
result = runner.invoke(cli, ["test"], obj=obj)
assert result.exit_code == 0
assert result.output == "testappgroup\n"
result = runner.invoke(cli, ["subgroup", "test2"], obj=obj)
assert result.exit_code == 0
assert result.output == "testappgroup\n"
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_appgroup_app_context() do?
test_appgroup_app_context() is a function in the flask codebase, defined in tests/test_cli.py.
Where is test_appgroup_app_context() defined?
test_appgroup_app_context() is defined in tests/test_cli.py at line 320.
What does test_appgroup_app_context() call?
test_appgroup_app_context() 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