invoke() — flask Function Reference
Architecture documentation for the invoke() function in test_cli.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac["invoke()"] 87d8059b_b546_2f64_06d3_da6459a325ff["TestRoutes"] cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac -->|defined in| 87d8059b_b546_2f64_06d3_da6459a325ff c88f4407_d4b9_9fd2_1bcd_28b44bf1b3cd["test_app_cli_has_app_context()"] c88f4407_d4b9_9fd2_1bcd_28b44bf1b3cd -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac 12c00957_0e04_f4db_f1ea_b7356e7deb26["test_with_appcontext()"] 12c00957_0e04_f4db_f1ea_b7356e7deb26 -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac 9788bd77_74ff_0d16_46c8_f7a9ffdaaa4c["test_appgroup_app_context()"] 9788bd77_74ff_0d16_46c8_f7a9ffdaaa4c -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac 285969ef_67f4_82b7_58a0_8b945fe6dbaa["test_flaskgroup_app_context()"] 285969ef_67f4_82b7_58a0_8b945fe6dbaa -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac de7222ec_94cf_95e2_42e0_6daa31a860b1["test_flaskgroup_debug()"] de7222ec_94cf_95e2_42e0_6daa31a860b1 -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac fe9f62e3_5c97_cf44_c830_119255b2621a["test_flaskgroup_nested()"] fe9f62e3_5c97_cf44_c830_119255b2621a -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac 07f26894_d0d2_2d9d_6d21_372410b88979["test_no_command_echo_loading_error()"] 07f26894_d0d2_2d9d_6d21_372410b88979 -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac 01ca6203_620a_7eb4_025a_b93ca3366c88["test_help_echo_loading_error()"] 01ca6203_620a_7eb4_025a_b93ca3366c88 -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac 95675dff_f144_120b_87ec_960934de7b65["test_help_echo_exception()"] 95675dff_f144_120b_87ec_960934de7b65 -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac 1c2463dc_53b4_7b60_5549_5a16cce48390["test_simple()"] 1c2463dc_53b4_7b60_5549_5a16cce48390 -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac 02d6c36b_d894_2580_16f5_743c55150675["test_sort()"] 02d6c36b_d894_2580_16f5_743c55150675 -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac 5d659455_1606_5d60_8717_db37f5b8ebfb["test_all_methods()"] 5d659455_1606_5d60_8717_db37f5b8ebfb -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac ba76b4db_0e62_e6f9_a6ed_ed45f11a6658["test_no_routes()"] ba76b4db_0e62_e6f9_a6ed_ed45f11a6658 -->|calls| cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac style cfcc1ba6_ce20_a6d4_f8cd_998cddafcbac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_cli.py lines 459–461
def invoke(self, app, runner):
cli = FlaskGroup(create_app=lambda: app)
return partial(runner.invoke, cli)
Domain
Subdomains
Defined In
Called By
- test_all_methods()
- test_app_cli_has_app_context()
- test_appgroup_app_context()
- test_cli_blueprints()
- test_cli_empty()
- test_disable_dotenv_from_env()
- test_flaskgroup_app_context()
- test_flaskgroup_debug()
- test_flaskgroup_nested()
- test_help_echo_exception()
- test_help_echo_loading_error()
- test_host()
- test_no_command_echo_loading_error()
- test_no_routes()
- test_simple()
- test_sort()
- test_subdomain()
- test_with_appcontext()
Source
Frequently Asked Questions
What does invoke() do?
invoke() is a function in the flask codebase, defined in tests/test_cli.py.
Where is invoke() defined?
invoke() is defined in tests/test_cli.py at line 459.
What calls invoke()?
invoke() is called by 18 function(s): test_all_methods, test_app_cli_has_app_context, test_appgroup_app_context, test_cli_blueprints, test_cli_empty, test_disable_dotenv_from_env, test_flaskgroup_app_context, test_flaskgroup_debug, and 10 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free