SYMBOL INDEX (933 symbols across 67 files) FILE: docs/conf.py function github_link (line 72) | def github_link(name, rawtext, text, lineno, inliner, options=None, cont... function setup (line 100) | def setup(app): FILE: examples/celery/src/task_app/__init__.py function create_app (line 7) | def create_app() -> Flask: function celery_init_app (line 29) | def celery_init_app(app: Flask) -> Celery: FILE: examples/celery/src/task_app/tasks.py function add (line 8) | def add(a: int, b: int) -> int: function block (line 13) | def block() -> None: function process (line 18) | def process(self: Task, total: int) -> object: FILE: examples/celery/src/task_app/views.py function result (line 11) | def result(id: str) -> dict[str, object]: function add (line 22) | def add() -> dict[str, object]: function block (line 30) | def block() -> dict[str, object]: function process (line 36) | def process() -> dict[str, object]: FILE: examples/javascript/js_example/views.py function index (line 10) | def index(js): function add (line 15) | def add(): FILE: examples/javascript/tests/conftest.py function fixture_app (line 7) | def fixture_app(): function client (line 14) | def client(app): FILE: examples/javascript/tests/test_js_example.py function test_index (line 14) | def test_index(app, client, path, template_name): function test_add (line 25) | def test_add(client, a, b, result): FILE: examples/tutorial/flaskr/__init__.py function create_app (line 6) | def create_app(test_config=None): FILE: examples/tutorial/flaskr/auth.py function login_required (line 19) | def login_required(view): function load_logged_in_user (line 33) | def load_logged_in_user(): function register (line 47) | def register(): function login (line 85) | def login(): function logout (line 113) | def logout(): FILE: examples/tutorial/flaskr/blog.py function index (line 17) | def index(): function get_post (line 28) | def get_post(id, check_author=True): function create (line 62) | def create(): function update (line 88) | def update(id): function delete (line 115) | def delete(id): FILE: examples/tutorial/flaskr/db.py function get_db (line 9) | def get_db(): function close_db (line 23) | def close_db(e=None): function init_db (line 33) | def init_db(): function init_db_command (line 42) | def init_db_command(): function init_app (line 51) | def init_app(app): FILE: examples/tutorial/flaskr/schema.sql type user (line 7) | CREATE TABLE user ( type post (line 13) | CREATE TABLE post ( FILE: examples/tutorial/tests/conftest.py function app (line 16) | def app(): function client (line 36) | def client(app): function runner (line 42) | def runner(app): class AuthActions (line 47) | class AuthActions: method __init__ (line 48) | def __init__(self, client): method login (line 51) | def login(self, username="test", password="test"): method logout (line 56) | def logout(self): function auth (line 61) | def auth(client): FILE: examples/tutorial/tests/test_auth.py function test_register (line 8) | def test_register(client, app): function test_register_validate_input (line 32) | def test_register_validate_input(client, username, password, message): function test_login (line 39) | def test_login(client, auth): function test_login_validate_input (line 59) | def test_login_validate_input(auth, username, password, message): function test_logout (line 64) | def test_logout(client, auth): FILE: examples/tutorial/tests/test_blog.py function test_index (line 6) | def test_index(client, auth): function test_login_required (line 20) | def test_login_required(client, path): function test_author_required (line 25) | def test_author_required(app, client, auth): function test_exists_required (line 41) | def test_exists_required(client, auth, path): function test_create (line 46) | def test_create(client, auth, app): function test_update (line 57) | def test_update(client, auth, app): function test_create_update_validate (line 69) | def test_create_update_validate(client, auth, path): function test_delete (line 75) | def test_delete(client, auth, app): FILE: examples/tutorial/tests/test_db.py function test_get_close_db (line 8) | def test_get_close_db(app): function test_init_db_command (line 19) | def test_init_db_command(runner, monkeypatch): FILE: examples/tutorial/tests/test_factory.py function test_config (line 4) | def test_config(): function test_hello (line 10) | def test_hello(client): FILE: src/flask/app.py function _make_timedelta (line 73) | def _make_timedelta(value: timedelta | int | None) -> timedelta | None: function remove_ctx (line 85) | def remove_ctx(f: F) -> F: function add_ctx (line 97) | def add_ctx(f: F) -> F: class Flask (line 109) | class Flask(App): method __init_subclass__ (line 254) | def __init_subclass__(cls, **kwargs: t.Any) -> None: method __init__ (line 310) | def __init__( method get_send_file_max_age (line 365) | def get_send_file_max_age(self, filename: str | None) -> int | None: method send_static_file (line 392) | def send_static_file(self, filename: str) -> Response: method open_resource (line 414) | def open_resource( method open_instance_resource (line 447) | def open_instance_resource( method create_jinja_environment (line 469) | def create_jinja_environment(self) -> Environment: method create_url_adapter (line 509) | def create_url_adapter(self, request: Request | None) -> MapAdapter | ... method raise_routing_exception (line 562) | def raise_routing_exception(self, request: Request) -> t.NoReturn: method update_template_context (line 590) | def update_template_context( method make_shell_context (line 620) | def make_shell_context(self) -> dict[str, t.Any]: method run (line 632) | def run( method test_client (line 755) | def test_client(self, use_cookies: bool = True, **kwargs: t.Any) -> Fl... method test_cli_runner (line 813) | def test_cli_runner(self, **kwargs: t.Any) -> FlaskCliRunner: method handle_http_exception (line 830) | def handle_http_exception( method handle_user_exception (line 865) | def handle_user_exception( method handle_exception (line 897) | def handle_exception(self, ctx: AppContext, e: Exception) -> Response: method log_exception (line 950) | def log_exception( method dispatch_request (line 966) | def dispatch_request(self, ctx: AppContext) -> ft.ResponseReturnValue: method full_dispatch_request (line 992) | def full_dispatch_request(self, ctx: AppContext) -> Response: method finalize_request (line 1021) | def finalize_request( method make_default_options_response (line 1053) | def make_default_options_response(self, ctx: AppContext) -> Response: method ensure_sync (line 1065) | def ensure_sync(self, func: t.Callable[..., t.Any]) -> t.Callable[...,... method async_to_sync (line 1079) | def async_to_sync( method url_for (line 1102) | def url_for( method make_response (line 1224) | def make_response(self, rv: ft.ResponseReturnValue) -> Response: method preprocess_request (line 1366) | def preprocess_request(self, ctx: AppContext) -> ft.ResponseReturnValu... method process_response (line 1394) | def process_response(self, ctx: AppContext, response: Response) -> Res... method do_teardown_request (line 1420) | def do_teardown_request( method do_teardown_appcontext (line 1453) | def do_teardown_appcontext( method app_context (line 1481) | def app_context(self) -> AppContext: method request_context (line 1501) | def request_context(self, environ: WSGIEnvironment) -> AppContext: method test_request_context (line 1517) | def test_request_context(self, *args: t.Any, **kwargs: t.Any) -> AppCo... method wsgi_app (line 1566) | def wsgi_app( method __call__ (line 1618) | def __call__( FILE: src/flask/blueprints.py class Blueprint (line 18) | class Blueprint(SansioBlueprint): method __init__ (line 19) | def __init__( method get_send_file_max_age (line 55) | def get_send_file_max_age(self, filename: str | None) -> int | None: method send_static_file (line 82) | def send_static_file(self, filename: str) -> Response: method open_resource (line 104) | def open_resource( FILE: src/flask/cli.py class NoAppException (line 37) | class NoAppException(click.UsageError): function find_best_app (line 41) | def find_best_app(module: ModuleType) -> Flask: function _called_with_wrong_args (line 94) | def _called_with_wrong_args(f: t.Callable[..., Flask]) -> bool: function find_app_by_string (line 120) | def find_app_by_string(module: ModuleType, app_name: str) -> Flask: function prepare_import (line 200) | def prepare_import(path: str) -> str: function locate_app (line 230) | def locate_app( function locate_app (line 236) | def locate_app( function locate_app (line 241) | def locate_app( function get_version (line 267) | def get_version(ctx: click.Context, param: click.Parameter, value: t.Any... class ScriptInfo (line 293) | class ScriptInfo: method __init__ (line 305) | def __init__( method load_app (line 333) | def load_app(self) -> Flask: function with_appcontext (line 380) | def with_appcontext(f: F) -> F: class AppGroup (line 405) | class AppGroup(click.Group): method command (line 413) | def command( # type: ignore[override] method group (line 429) | def group( # type: ignore[override] function _set_app (line 440) | def _set_app(ctx: click.Context, param: click.Option, value: str | None)... function _set_debug (line 468) | def _set_debug(ctx: click.Context, param: click.Option, value: bool) -> ... function _env_file_callback (line 493) | def _env_file_callback( class FlaskGroup (line 531) | class FlaskGroup(AppGroup): method __init__ (line 563) | def __init__( method _load_plugin_commands (line 600) | def _load_plugin_commands(self) -> None: method get_command (line 609) | def get_command(self, ctx: click.Context, name: str) -> click.Command ... method list_commands (line 636) | def list_commands(self, ctx: click.Context) -> list[str]: method make_context (line 657) | def make_context( method parse_args (line 678) | def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]: function _path_is_ancestor (line 691) | def _path_is_ancestor(path: str, other: str) -> bool: function load_dotenv (line 698) | def load_dotenv( function show_server_banner (line 766) | def show_server_banner(debug: bool, app_import_path: str | None) -> None: class CertParamType (line 780) | class CertParamType(click.ParamType): method __init__ (line 788) | def __init__(self) -> None: method convert (line 791) | def convert( function _validate_key (line 828) | def _validate_key(ctx: click.Context, param: click.Parameter, value: t.A... class SeparatedPathType (line 867) | class SeparatedPathType(click.Path): method convert (line 873) | def convert( function run_command (line 935) | def run_command( function shell_command (line 1001) | def shell_command() -> None: function routes_command (line 1061) | def routes_command(sort: str, all_methods: bool) -> None: function main (line 1122) | def main() -> None: FILE: src/flask/config.py class ConfigAttribute (line 20) | class ConfigAttribute(t.Generic[T]): method __init__ (line 23) | def __init__( method __get__ (line 30) | def __get__(self, obj: None, owner: None) -> te.Self: ... method __get__ (line 33) | def __get__(self, obj: App, owner: type[App]) -> T: ... method __get__ (line 35) | def __get__(self, obj: App | None, owner: type[App] | None = None) -> ... method __set__ (line 46) | def __set__(self, obj: App, value: t.Any) -> None: class Config (line 50) | class Config(dict): # type: ignore[type-arg] method __init__ (line 94) | def __init__( method from_envvar (line 102) | def from_envvar(self, variable_name: str, silent: bool = False) -> bool: method from_prefixed_env (line 126) | def from_prefixed_env( method from_pyfile (line 187) | def from_pyfile( method from_object (line 218) | def from_object(self, obj: object | str) -> None: method from_file (line 256) | def from_file( method from_mapping (line 304) | def from_mapping( method get_namespace (line 323) | def get_namespace( method __repr__ (line 366) | def __repr__(self) -> str: FILE: src/flask/ctx.py class _AppCtxGlobals (line 30) | class _AppCtxGlobals: method __getattr__ (line 53) | def __getattr__(self, name: str) -> t.Any: method __setattr__ (line 59) | def __setattr__(self, name: str, value: t.Any) -> None: method __delattr__ (line 62) | def __delattr__(self, name: str) -> None: method get (line 68) | def get(self, name: str, default: t.Any | None = None) -> t.Any: method pop (line 79) | def pop(self, name: str, default: t.Any = _sentinel) -> t.Any: method setdefault (line 93) | def setdefault(self, name: str, default: t.Any = None) -> t.Any: method __contains__ (line 105) | def __contains__(self, item: str) -> bool: method __iter__ (line 108) | def __iter__(self) -> t.Iterator[str]: method __repr__ (line 111) | def __repr__(self) -> str: function after_this_request (line 118) | def after_this_request( function copy_current_request_context (line 154) | def copy_current_request_context(f: F) -> F: function has_request_context (line 209) | def has_request_context() -> bool: function has_app_context (line 235) | def has_app_context() -> bool: class AppContext (line 260) | class AppContext: method __init__ (line 300) | def __init__( method from_environ (line 340) | def from_environ(cls, app: Flask, environ: WSGIEnvironment, /) -> te.S... method has_request (line 351) | def has_request(self) -> bool: method copy (line 355) | def copy(self) -> te.Self: method request (line 371) | def request(self) -> Request: method _get_session (line 381) | def _get_session(self) -> SessionMixin: method session (line 396) | def session(self) -> SessionMixin: method match_request (line 405) | def match_request(self) -> None: method push (line 416) | def push(self) -> None: method pop (line 446) | def pop(self, exc: BaseException | None = None) -> None: method __enter__ (line 506) | def __enter__(self) -> te.Self: method __exit__ (line 510) | def __exit__( method __repr__ (line 518) | def __repr__(self) -> str: function __getattr__ (line 528) | def __getattr__(name: str) -> t.Any: FILE: src/flask/debughelpers.py class UnexpectedUnicodeError (line 17) | class UnexpectedUnicodeError(AssertionError, UnicodeError): class DebugFilesKeyError (line 23) | class DebugFilesKeyError(KeyError, AssertionError): method __init__ (line 28) | def __init__(self, request: Request, key: str) -> None: method __str__ (line 46) | def __str__(self) -> str: class FormDataRoutingRedirect (line 50) | class FormDataRoutingRedirect(AssertionError): method __init__ (line 57) | def __init__(self, request: Request) -> None: function attach_enctype_error_multidict (line 81) | def attach_enctype_error_multidict(request: Request) -> None: function _dump_loader_info (line 107) | def _dump_loader_info(loader: BaseLoader) -> t.Iterator[str]: function explain_template_loading_attempts (line 124) | def explain_template_loading_attempts( FILE: src/flask/globals.py class ProxyMixin (line 17) | class ProxyMixin(t.Protocol[T]): method _get_current_object (line 18) | def _get_current_object(self) -> T: ... class FlaskProxy (line 22) | class FlaskProxy(ProxyMixin[Flask], Flask): ... class AppContextProxy (line 24) | class AppContextProxy(ProxyMixin[AppContext], AppContext): ... class _AppCtxGlobalsProxy (line 26) | class _AppCtxGlobalsProxy(ProxyMixin[_AppCtxGlobals], _AppCtxGlobals): ... class RequestProxy (line 28) | class RequestProxy(ProxyMixin[Request], Request): ... class SessionMixinProxy (line 30) | class SessionMixinProxy(ProxyMixin[SessionMixin], SessionMixin): ... function __getattr__ (line 65) | def __getattr__(name: str) -> t.Any: FILE: src/flask/helpers.py function get_debug_flag (line 28) | def get_debug_flag() -> bool: function get_load_dotenv (line 36) | def get_load_dotenv(default: bool = True) -> bool: function stream_with_context (line 52) | def stream_with_context( function stream_with_context (line 58) | def stream_with_context( function stream_with_context (line 63) | def stream_with_context( function make_response (line 151) | def make_response(*args: t.Any) -> Response: function url_for (line 200) | def url_for( function redirect (line 254) | def redirect( function abort (line 281) | def abort(code: int | BaseResponse, *args: t.Any, **kwargs: t.Any) -> t.... function get_template_attribute (line 304) | def get_template_attribute(template_name: str, attribute: str) -> t.Any: function flash (line 326) | def flash(message: str, category: str = "message") -> None: function get_flashed_messages (line 360) | def get_flashed_messages( function _prepare_send_file_kwargs (line 402) | def _prepare_send_file_kwargs(**kwargs: t.Any) -> dict[str, t.Any]: function send_file (line 417) | def send_file( function send_from_directory (line 543) | def send_from_directory( function get_root_path (line 587) | def get_root_path(import_name: str) -> str: function _split_blueprint_path (line 645) | def _split_blueprint_path(name: str) -> list[str]: class _CollectErrors (line 654) | class _CollectErrors: method __init__ (line 659) | def __init__(self) -> None: method __enter__ (line 662) | def __enter__(self) -> None: method __exit__ (line 665) | def __exit__( method raise_any (line 676) | def raise_any(self, message: str) -> None: FILE: src/flask/json/__init__.py function dumps (line 13) | def dumps(obj: t.Any, **kwargs: t.Any) -> str: function dump (line 47) | def dump(obj: t.Any, fp: t.IO[str], **kwargs: t.Any) -> None: function loads (line 77) | def loads(s: str | bytes, **kwargs: t.Any) -> t.Any: function load (line 108) | def load(fp: t.IO[t.AnyStr], **kwargs: t.Any) -> t.Any: function jsonify (line 138) | def jsonify(*args: t.Any, **kwargs: t.Any) -> Response: FILE: src/flask/json/provider.py class JSONProvider (line 19) | class JSONProvider: method __init__ (line 38) | def __init__(self, app: App) -> None: method dumps (line 41) | def dumps(self, obj: t.Any, **kwargs: t.Any) -> str: method dump (line 49) | def dump(self, obj: t.Any, fp: t.IO[str], **kwargs: t.Any) -> None: method loads (line 59) | def loads(self, s: str | bytes, **kwargs: t.Any) -> t.Any: method load (line 67) | def load(self, fp: t.IO[t.AnyStr], **kwargs: t.Any) -> t.Any: method _prepare_response_obj (line 75) | def _prepare_response_obj( method response (line 89) | def response(self, *args: t.Any, **kwargs: t.Any) -> Response: function _default (line 108) | def _default(o: t.Any) -> t.Any: class DefaultJSONProvider (line 124) | class DefaultJSONProvider(JSONProvider): method dumps (line 166) | def dumps(self, obj: t.Any, **kwargs: t.Any) -> str: method loads (line 181) | def loads(self, s: str | bytes, **kwargs: t.Any) -> t.Any: method response (line 189) | def response(self, *args: t.Any, **kwargs: t.Any) -> Response: FILE: src/flask/json/tag.py class JSONTag (line 60) | class JSONTag: method __init__ (line 69) | def __init__(self, serializer: TaggedJSONSerializer) -> None: method check (line 73) | def check(self, value: t.Any) -> bool: method to_json (line 77) | def to_json(self, value: t.Any) -> t.Any: method to_python (line 82) | def to_python(self, value: t.Any) -> t.Any: method tag (line 87) | def tag(self, value: t.Any) -> dict[str, t.Any]: class TagDict (line 93) | class TagDict(JSONTag): method check (line 103) | def check(self, value: t.Any) -> bool: method to_json (line 110) | def to_json(self, value: t.Any) -> t.Any: method to_python (line 114) | def to_python(self, value: t.Any) -> t.Any: class PassDict (line 119) | class PassDict(JSONTag): method check (line 122) | def check(self, value: t.Any) -> bool: method to_json (line 125) | def to_json(self, value: t.Any) -> t.Any: class TagTuple (line 133) | class TagTuple(JSONTag): method check (line 137) | def check(self, value: t.Any) -> bool: method to_json (line 140) | def to_json(self, value: t.Any) -> t.Any: method to_python (line 143) | def to_python(self, value: t.Any) -> t.Any: class PassList (line 147) | class PassList(JSONTag): method check (line 150) | def check(self, value: t.Any) -> bool: method to_json (line 153) | def to_json(self, value: t.Any) -> t.Any: class TagBytes (line 159) | class TagBytes(JSONTag): method check (line 163) | def check(self, value: t.Any) -> bool: method to_json (line 166) | def to_json(self, value: t.Any) -> t.Any: method to_python (line 169) | def to_python(self, value: t.Any) -> t.Any: class TagMarkup (line 173) | class TagMarkup(JSONTag): method check (line 181) | def check(self, value: t.Any) -> bool: method to_json (line 184) | def to_json(self, value: t.Any) -> t.Any: method to_python (line 187) | def to_python(self, value: t.Any) -> t.Any: class TagUUID (line 191) | class TagUUID(JSONTag): method check (line 195) | def check(self, value: t.Any) -> bool: method to_json (line 198) | def to_json(self, value: t.Any) -> t.Any: method to_python (line 201) | def to_python(self, value: t.Any) -> t.Any: class TagDateTime (line 205) | class TagDateTime(JSONTag): method check (line 209) | def check(self, value: t.Any) -> bool: method to_json (line 212) | def to_json(self, value: t.Any) -> t.Any: method to_python (line 215) | def to_python(self, value: t.Any) -> t.Any: class TaggedJSONSerializer (line 219) | class TaggedJSONSerializer: method __init__ (line 249) | def __init__(self) -> None: method register (line 256) | def register( method tag (line 289) | def tag(self, value: t.Any) -> t.Any: method untag (line 297) | def untag(self, value: dict[str, t.Any]) -> t.Any: method _untag_scan (line 309) | def _untag_scan(self, value: t.Any) -> t.Any: method dumps (line 321) | def dumps(self, value: t.Any) -> str: method loads (line 325) | def loads(self, value: str) -> t.Any: FILE: src/flask/logging.py function wsgi_errors_stream (line 16) | def wsgi_errors_stream() -> t.TextIO: function has_level_handler (line 31) | def has_level_handler(logger: logging.Logger) -> bool: function create_logger (line 58) | def create_logger(app: App) -> logging.Logger: FILE: src/flask/sansio/app.py function _make_timedelta (line 52) | def _make_timedelta(value: timedelta | int | None) -> timedelta | None: class App (line 59) | class App(Scaffold): method __init__ (line 279) | def __init__( method _check_setup_finished (line 410) | def _check_setup_finished(self, f_name: str) -> None: method name (line 423) | def name(self) -> str: method logger (line 440) | def logger(self) -> logging.Logger: method jinja_env (line 467) | def jinja_env(self) -> Environment: method create_jinja_environment (line 476) | def create_jinja_environment(self) -> Environment: method make_config (line 479) | def make_config(self, instance_relative: bool = False) -> Config: method make_aborter (line 495) | def make_aborter(self) -> Aborter: method auto_find_instance_path (line 507) | def auto_find_instance_path(self) -> str: method create_global_jinja_loader (line 520) | def create_global_jinja_loader(self) -> DispatchingJinjaLoader: method select_jinja_autoescape (line 533) | def select_jinja_autoescape(self, filename: str | None) -> bool: method debug (line 547) | def debug(self) -> bool: method debug (line 560) | def debug(self, value: bool) -> None: method register_blueprint (line 567) | def register_blueprint(self, blueprint: Blueprint, **options: t.Any) -... method iter_blueprints (line 594) | def iter_blueprints(self) -> t.ValuesView[Blueprint]: method add_url_rule (line 602) | def add_url_rule( method template_filter (line 661) | def template_filter(self, name: T_template_filter) -> T_template_filte... method template_filter (line 663) | def template_filter( method template_filter (line 667) | def template_filter( method add_template_filter (line 696) | def add_template_filter( method template_test (line 711) | def template_test(self, name: T_template_test) -> T_template_test: ... method template_test (line 713) | def template_test( method template_test (line 717) | def template_test( method add_template_test (line 753) | def add_template_test( method template_global (line 770) | def template_global(self, name: T_template_global) -> T_template_globa... method template_global (line 772) | def template_global( method template_global (line 776) | def template_global( method add_template_global (line 807) | def add_template_global( method teardown_appcontext (line 824) | def teardown_appcontext(self, f: T_teardown) -> T_teardown: method shell_context_processor (line 855) | def shell_context_processor( method _find_error_handler (line 865) | def _find_error_handler( method trap_http_exception (line 890) | def trap_http_exception(self, e: Exception) -> bool: method redirect (line 936) | def redirect(self, location: str, code: int = 303) -> BaseResponse: method inject_url_defaults (line 957) | def inject_url_defaults(self, endpoint: str, values: dict[str, t.Any])... method handle_url_build_error (line 978) | def handle_url_build_error( FILE: src/flask/sansio/blueprints.py class BlueprintSetupState (line 34) | class BlueprintSetupState: method __init__ (line 41) | def __init__( method add_url_rule (line 87) | def add_url_rule( class Blueprint (line 119) | class Blueprint(Scaffold): method __init__ (line 174) | def __init__( method _check_setup_finished (line 213) | def _check_setup_finished(self, f_name: str) -> None: method record (line 224) | def record(self, func: DeferredSetupFunction) -> None: method record_once (line 233) | def record_once(self, func: DeferredSetupFunction) -> None: method make_setup_state (line 246) | def make_setup_state( method register_blueprint (line 256) | def register_blueprint(self, blueprint: Blueprint, **options: t.Any) -... method register (line 273) | def register(self, app: App, options: dict[str, t.Any]) -> None: method _merge_blueprint_funcs (line 379) | def _merge_blueprint_funcs(self, app: App, name: str) -> None: method add_url_rule (line 413) | def add_url_rule( method app_template_filter (line 444) | def app_template_filter(self, name: T_template_filter) -> T_template_f... method app_template_filter (line 446) | def app_template_filter( method app_template_filter (line 450) | def app_template_filter( method add_app_template_filter (line 476) | def add_app_template_filter( method app_template_test (line 498) | def app_template_test(self, name: T_template_test) -> T_template_test:... method app_template_test (line 500) | def app_template_test( method app_template_test (line 504) | def app_template_test( method add_app_template_test (line 532) | def add_app_template_test( method app_template_global (line 556) | def app_template_global(self, name: T_template_global) -> T_template_g... method app_template_global (line 558) | def app_template_global( method app_template_global (line 562) | def app_template_global( method add_app_template_global (line 590) | def add_app_template_global( method before_app_request (line 614) | def before_app_request(self, f: T_before_request) -> T_before_request: method after_app_request (line 624) | def after_app_request(self, f: T_after_request) -> T_after_request: method teardown_app_request (line 634) | def teardown_app_request(self, f: T_teardown) -> T_teardown: method app_context_processor (line 644) | def app_context_processor( method app_errorhandler (line 656) | def app_errorhandler( method app_url_value_preprocessor (line 673) | def app_url_value_preprocessor( method app_url_defaults (line 685) | def app_url_defaults(self, f: T_url_defaults) -> T_url_defaults: FILE: src/flask/sansio/scaffold.py function setupmethod (line 42) | def setupmethod(f: F) -> F: class Scaffold (line 52) | class Scaffold: method __init__ (line 75) | def __init__( method __repr__ (line 217) | def __repr__(self) -> str: method _check_setup_finished (line 220) | def _check_setup_finished(self, f_name: str) -> None: method static_folder (line 224) | def static_folder(self) -> str | None: method static_folder (line 234) | def static_folder(self, value: str | os.PathLike[str] | None) -> None: method has_static_folder (line 241) | def has_static_folder(self) -> bool: method static_url_path (line 249) | def static_url_path(self) -> str | None: method static_url_path (line 265) | def static_url_path(self, value: str | None) -> None: method jinja_loader (line 272) | def jinja_loader(self) -> BaseLoader | None: method _method_route (line 284) | def _method_route( method get (line 296) | def get(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T_... method post (line 304) | def post(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T... method put (line 312) | def put(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T_... method delete (line 320) | def delete(self, rule: str, **options: t.Any) -> t.Callable[[T_route],... method patch (line 328) | def patch(self, rule: str, **options: t.Any) -> t.Callable[[T_route], ... method route (line 336) | def route(self, rule: str, **options: t.Any) -> t.Callable[[T_route], ... method add_url_rule (line 368) | def add_url_rule( method endpoint (line 436) | def endpoint(self, endpoint: str) -> t.Callable[[F], F]: method before_request (line 460) | def before_request(self, f: T_before_request) -> T_before_request: method after_request (line 487) | def after_request(self, f: T_after_request) -> T_after_request: method teardown_request (line 508) | def teardown_request(self, f: T_teardown) -> T_teardown: method context_processor (line 542) | def context_processor( method url_value_preprocessor (line 559) | def url_value_preprocessor( method url_defaults (line 584) | def url_defaults(self, f: T_url_defaults) -> T_url_defaults: method errorhandler (line 598) | def errorhandler( method register_error_handler (line 642) | def register_error_handler( method _get_exc_class_and_code (line 657) | def _get_exc_class_and_code( function _endpoint_from_view_func (line 701) | def _endpoint_from_view_func(view_func: ft.RouteCallable) -> str: function _find_package_path (line 709) | def _find_package_path(import_name: str) -> str: function find_package (line 754) | def find_package(import_name: str) -> tuple[str | None, str]: FILE: src/flask/sessions.py class SessionMixin (line 24) | class SessionMixin(MutableMapping[str, t.Any]): method permanent (line 28) | def permanent(self) -> bool: method permanent (line 33) | def permanent(self, value: bool) -> None: class SecureCookieSession (line 57) | class SecureCookieSession(CallbackDict[str, t.Any], SessionMixin): method __init__ (line 73) | def __init__( class NullSession (line 83) | class NullSession(SecureCookieSession): method _fail (line 89) | def _fail(self, *args: t.Any, **kwargs: t.Any) -> t.NoReturn: class SessionInterface (line 100) | class SessionInterface: method make_null_session (line 150) | def make_null_session(self, app: Flask) -> NullSession: method is_null_session (line 162) | def is_null_session(self, obj: object) -> bool: method get_cookie_name (line 171) | def get_cookie_name(self, app: Flask) -> str: method get_cookie_domain (line 175) | def get_cookie_domain(self, app: Flask) -> str | None: method get_cookie_path (line 187) | def get_cookie_path(self, app: Flask) -> str: method get_cookie_httponly (line 195) | def get_cookie_httponly(self, app: Flask) -> bool: method get_cookie_secure (line 202) | def get_cookie_secure(self, app: Flask) -> bool: method get_cookie_samesite (line 208) | def get_cookie_samesite(self, app: Flask) -> str | None: method get_cookie_partitioned (line 215) | def get_cookie_partitioned(self, app: Flask) -> bool: method get_expiration_time (line 223) | def get_expiration_time(self, app: Flask, session: SessionMixin) -> da... method should_set_cookie (line 233) | def should_set_cookie(self, app: Flask, session: SessionMixin) -> bool: method open_session (line 249) | def open_session(self, app: Flask, request: Request) -> SessionMixin |... method save_session (line 263) | def save_session( function _lazy_sha1 (line 276) | def _lazy_sha1(string: bytes = b"") -> t.Any: class SecureCookieSessionInterface (line 284) | class SecureCookieSessionInterface(SessionInterface): method get_signing_serializer (line 303) | def get_signing_serializer(self, app: Flask) -> URLSafeTimedSerializer... method open_session (line 323) | def open_session(self, app: Flask, request: Request) -> SecureCookieSe... method save_session (line 337) | def save_session( FILE: src/flask/templating.py function _default_template_ctx_processor (line 21) | def _default_template_ctx_processor() -> dict[str, t.Any]: class Environment (line 36) | class Environment(BaseEnvironment): method __init__ (line 42) | def __init__(self, app: App, **options: t.Any) -> None: class DispatchingJinjaLoader (line 49) | class DispatchingJinjaLoader(BaseLoader): method __init__ (line 54) | def __init__(self, app: App) -> None: method get_source (line 57) | def get_source( method _get_source_explained (line 64) | def _get_source_explained( method _get_source_fast (line 88) | def _get_source_fast( method _iter_loaders (line 98) | def _iter_loaders(self, template: str) -> t.Iterator[tuple[Scaffold, B... method list_templates (line 108) | def list_templates(self) -> list[str]: function _render (line 123) | def _render(ctx: AppContext, template: Template, context: dict[str, t.An... function render_template (line 136) | def render_template( function render_template_string (line 151) | def render_template_string(source: str, **context: t.Any) -> str: function _stream (line 163) | def _stream( function stream_template (line 181) | def stream_template( function stream_template_string (line 200) | def stream_template_string(source: str, **context: t.Any) -> t.Iterator[... FILE: src/flask/testing.py class EnvironBuilder (line 27) | class EnvironBuilder(werkzeug.test.EnvironBuilder): method __init__ (line 49) | def __init__( method json_dumps (line 88) | def json_dumps(self, obj: t.Any, **kwargs: t.Any) -> str: function _get_werkzeug_version (line 100) | def _get_werkzeug_version() -> str: class FlaskClient (line 109) | class FlaskClient(Client): method __init__ (line 125) | def __init__(self, *args: t.Any, **kwargs: t.Any) -> None: method session_transaction (line 136) | def session_transaction( method _copy_environ (line 185) | def _copy_environ(self, other: WSGIEnvironment) -> WSGIEnvironment: method _request_from_builder_args (line 193) | def _request_from_builder_args( method open (line 204) | def open( method __enter__ (line 249) | def __enter__(self) -> FlaskClient: method __exit__ (line 255) | def __exit__( class FlaskCliRunner (line 265) | class FlaskCliRunner(CliRunner): method __init__ (line 271) | def __init__(self, app: Flask, **kwargs: t.Any) -> None: method invoke (line 275) | def invoke( # type: ignore FILE: src/flask/views.py class View (line 16) | class View: method dispatch_request (line 78) | def dispatch_request(self) -> ft.ResponseReturnValue: method as_view (line 86) | def as_view( class MethodView (line 138) | class MethodView(View): method __init_subclass__ (line 165) | def __init_subclass__(cls, **kwargs: t.Any) -> None: method dispatch_request (line 182) | def dispatch_request(self, **kwargs: t.Any) -> ft.ResponseReturnValue: FILE: src/flask/wrappers.py class Request (line 18) | class Request(RequestBase): method max_content_length (line 60) | def max_content_length(self) -> int | None: method max_content_length (line 89) | def max_content_length(self, value: int | None) -> None: method max_form_memory_size (line 93) | def max_form_memory_size(self) -> int | None: method max_form_memory_size (line 116) | def max_form_memory_size(self, value: int | None) -> None: method max_form_parts (line 120) | def max_form_parts(self) -> int | None: method max_form_parts (line 143) | def max_form_parts(self, value: int | None) -> None: method endpoint (line 147) | def endpoint(self) -> str | None: method blueprint (line 162) | def blueprint(self) -> str | None: method blueprints (line 181) | def blueprints(self) -> list[str]: method _load_form_data (line 197) | def _load_form_data(self) -> None: method on_json_loading_failed (line 212) | def on_json_loading_failed(self, e: ValueError | None) -> t.Any: class Response (line 222) | class Response(ResponseBase): method max_cookie_size (line 247) | def max_cookie_size(self) -> int: # type: ignore FILE: tests/conftest.py function _standard_os_environ (line 12) | def _standard_os_environ(): function _reset_os_environ (line 37) | def _reset_os_environ(monkeypatch, _standard_os_environ): function app (line 45) | def app(): function app_ctx (line 55) | def app_ctx(app): function req_ctx (line 61) | def req_ctx(app): function client (line 67) | def client(app): function test_apps (line 72) | def test_apps(monkeypatch): function leak_detector (line 85) | def leak_detector(): function modules_tmp_path (line 100) | def modules_tmp_path(tmp_path, monkeypatch): function modules_tmp_path_prefix (line 109) | def modules_tmp_path_prefix(modules_tmp_path, monkeypatch): function site_packages (line 115) | def site_packages(modules_tmp_path, monkeypatch): function purge_module (line 125) | def purge_module(request): FILE: tests/test_appctx.py function test_basic_url_generation (line 10) | def test_basic_url_generation(app): function test_url_generation_requires_server_name (line 23) | def test_url_generation_requires_server_name(app): function test_url_generation_without_context_fails (line 29) | def test_url_generation_without_context_fails(): function test_request_context_means_app_context (line 34) | def test_request_context_means_app_context(app): function test_app_context_provides_current_app (line 40) | def test_app_context_provides_current_app(app): function test_app_tearing_down (line 46) | def test_app_tearing_down(app): function test_app_tearing_down_with_previous_exception (line 59) | def test_app_tearing_down_with_previous_exception(app): function test_app_tearing_down_with_handled_exception_by_except_block (line 77) | def test_app_tearing_down_with_handled_exception_by_except_block(app): function test_app_tearing_down_with_handled_exception_by_app_handler (line 93) | def test_app_tearing_down_with_handled_exception_by_app_handler(app, cli... function test_app_tearing_down_with_unhandled_exception (line 116) | def test_app_tearing_down_with_unhandled_exception(app, client): function test_app_ctx_globals_methods (line 139) | def test_app_ctx_globals_methods(app, app_ctx): function test_custom_app_ctx_globals_class (line 162) | def test_custom_app_ctx_globals_class(app): function test_context_refcounts (line 172) | def test_context_refcounts(app, client): function test_clean_pop (line 197) | def test_clean_pop(app): function test_robust_teardown (line 216) | def test_robust_teardown(app: flask.Flask, client: FlaskClient) -> None: FILE: tests/test_apps/blueprintapp/apps/admin/__init__.py function index (line 14) | def index(): function index2 (line 19) | def index2(): FILE: tests/test_apps/blueprintapp/apps/frontend/__init__.py function index (line 8) | def index(): function missing_template (line 13) | def missing_template(): FILE: tests/test_apps/cliapp/factory.py function create_app (line 4) | def create_app(): function create_app2 (line 8) | def create_app2(foo, bar): function no_app (line 12) | def no_app(): FILE: tests/test_apps/helloworld/hello.py function hello (line 7) | def hello(): FILE: tests/test_async.py class AppError (line 14) | class AppError(Exception): class BlueprintError (line 18) | class BlueprintError(Exception): class AsyncView (line 22) | class AsyncView(View): method dispatch_request (line 25) | async def dispatch_request(self): class AsyncMethodView (line 30) | class AsyncMethodView(MethodView): method get (line 31) | async def get(self): method post (line 35) | async def post(self): function _async_app (line 41) | def _async_app(): function test_async_route (line 82) | def test_async_route(path, async_app): function test_async_error_handler (line 91) | def test_async_error_handler(path, async_app): function test_async_before_after_request (line 97) | def test_async_before_after_request(): FILE: tests/test_basic.py function test_options_work (line 32) | def test_options_work(app, client): function test_options_on_multiple_rules (line 42) | def test_options_on_multiple_rules(app, client): function test_method_route (line 56) | def test_method_route(app, client, method): function test_method_route_no_methods (line 67) | def test_method_route_no_methods(app): function test_provide_automatic_options_attr_disable (line 72) | def test_provide_automatic_options_attr_disable( function test_provide_automatic_options_attr_enable (line 86) | def test_provide_automatic_options_attr_enable( function test_provide_automatic_options_arg_disable (line 103) | def test_provide_automatic_options_arg_disable( function test_provide_automatic_options_method_disable (line 116) | def test_provide_automatic_options_method_disable( function test_request_dispatching (line 129) | def test_request_dispatching(app, client): function test_disallow_string_for_allowed_methods (line 152) | def test_disallow_string_for_allowed_methods(app): function test_url_mapping (line 157) | def test_url_mapping(app, client): function test_werkzeug_routing (line 193) | def test_werkzeug_routing(app, client): function test_endpoint_decorator (line 214) | def test_endpoint_decorator(app, client): function test_session_accessed (line 234) | def test_session_accessed(app: flask.Flask, client: FlaskClient) -> None: function test_session_path (line 276) | def test_session_path(app, client): function test_session_using_application_root (line 288) | def test_session_using_application_root(app, client): function test_session_using_session_settings (line 310) | def test_session_using_session_settings(app, client): function test_session_using_samesite_attribute (line 353) | def test_session_using_samesite_attribute(app, client): function test_missing_session (line 380) | def test_missing_session(app): function test_session_secret_key_fallbacks (line 393) | def test_session_secret_key_fallbacks(app, client) -> None: function test_session_expiration (line 421) | def test_session_expiration(app, client): function test_session_stored_last (line 453) | def test_session_stored_last(app, client): function test_session_special_types (line 467) | def test_session_special_types(app, client): function test_session_cookie_setting (line 498) | def test_session_cookie_setting(app): function test_session_vary_cookie (line 539) | def test_session_vary_cookie(app, client): function test_session_refresh_vary (line 600) | def test_session_refresh_vary(app, client): function test_flashes (line 617) | def test_flashes(app, req_ctx): function test_extended_flashing (line 626) | def test_extended_flashing(app): function test_request_processing (line 707) | def test_request_processing(app, client): function test_request_preprocessing_early_return (line 732) | def test_request_preprocessing_early_return(app, client): function test_after_request_processing (line 759) | def test_after_request_processing(app, client): function test_teardown_request_handler (line 774) | def test_teardown_request_handler(app, client): function test_teardown_request_handler_debug_mode (line 792) | def test_teardown_request_handler_debug_mode(app, client): function test_teardown_request_handler_error (line 810) | def test_teardown_request_handler_error(app, client): function test_before_after_request_order (line 848) | def test_before_after_request_order(app, client): function test_error_handling (line 886) | def test_error_handling(app, client): function test_error_handling_processing (line 924) | def test_error_handling_processing(app, client): function test_baseexception_error_handling (line 945) | def test_baseexception_error_handling(app, client): function test_before_request_and_routing_errors (line 956) | def test_before_request_and_routing_errors(app, client): function test_user_error_handling (line 970) | def test_user_error_handling(app, client): function test_http_error_subclass_handling (line 986) | def test_http_error_subclass_handling(app, client): function test_errorhandler_precedence (line 1018) | def test_errorhandler_precedence(app, client): function test_trap_bad_request_key_error (line 1055) | def test_trap_bad_request_key_error(app, client, debug, trap, expect_key... function test_trapping_of_all_http_exceptions (line 1086) | def test_trapping_of_all_http_exceptions(app, client): function test_error_handler_after_processor_error (line 1097) | def test_error_handler_after_processor_error(app, client): function test_enctype_debug_helper (line 1126) | def test_enctype_debug_helper(app, client): function test_response_types (line 1141) | def test_response_types(app, client): function test_response_type_errors (line 1235) | def test_response_type_errors(): function test_make_response (line 1284) | def test_make_response(app, req_ctx): function test_make_response_with_response_instance (line 1306) | def test_make_response_with_response_instance(app, req_ctx): function test_jsonify_no_prettyprint (line 1328) | def test_jsonify_no_prettyprint(app, compact): function test_jsonify_mimetype (line 1336) | def test_jsonify_mimetype(app, req_ctx): function test_json_dump_dataclass (line 1343) | def test_json_dump_dataclass(app, req_ctx): function test_jsonify_args_and_kwargs_check (line 1352) | def test_jsonify_args_and_kwargs_check(app, req_ctx): function test_url_generation (line 1358) | def test_url_generation(app, req_ctx): function test_build_error_handler (line 1370) | def test_build_error_handler(app): function test_build_error_handler_reraise (line 1396) | def test_build_error_handler_reraise(app): function test_url_for_passes_special_values_to_build_error_handler (line 1407) | def test_url_for_passes_special_values_to_build_error_handler(app): function test_static_files (line 1422) | def test_static_files(app, client): function test_static_url_path (line 1432) | def test_static_url_path(): function test_static_url_path_with_ending_slash (line 1443) | def test_static_url_path_with_ending_slash(): function test_static_url_empty_path (line 1454) | def test_static_url_empty_path(app): function test_static_url_empty_path_default (line 1461) | def test_static_url_empty_path_default(app): function test_static_folder_with_pathlib_path (line 1468) | def test_static_folder_with_pathlib_path(app): function test_static_folder_with_ending_slash (line 1477) | def test_static_folder_with_ending_slash(): function test_static_route_with_host_matching (line 1488) | def test_static_route_with_host_matching(): function test_request_locals (line 1510) | def test_request_locals(): function test_server_name_matching (line 1526) | def test_server_name_matching( function test_server_name_subdomain (line 1562) | def test_server_name_subdomain(): function test_exception_propagation (line 1608) | def test_exception_propagation(app, client, key): function test_werkzeug_passthrough_errors (line 1628) | def test_werkzeug_passthrough_errors( function test_url_processors (line 1642) | def test_url_processors(app, client): function test_inject_blueprint_url_defaults (line 1671) | def test_inject_blueprint_url_defaults(app): function test_nonascii_pathinfo (line 1695) | def test_nonascii_pathinfo(app, client): function test_no_setup_after_first_request (line 1704) | def test_no_setup_after_first_request(app, client): function test_routing_redirect_debugging (line 1719) | def test_routing_redirect_debugging(monkeypatch, app, client): function test_route_decorator_custom_endpoint (line 1739) | def test_route_decorator_custom_endpoint(app, client): function test_get_method_on_g (line 1764) | def test_get_method_on_g(app_ctx): function test_g_iteration_protocol (line 1772) | def test_g_iteration_protocol(app_ctx): function test_subdomain_basic_support (line 1780) | def test_subdomain_basic_support(): function test_subdomain_matching (line 1800) | def test_subdomain_matching(): function test_subdomain_matching_with_ports (line 1813) | def test_subdomain_matching_with_ports(): function test_subdomain_matching_other_name (line 1827) | def test_subdomain_matching_other_name(matching): function test_multi_route_rules (line 1850) | def test_multi_route_rules(app, client): function test_multi_route_class_views (line 1862) | def test_multi_route_class_views(app, client): function test_run_defaults (line 1878) | def test_run_defaults(monkeypatch, app): function test_run_server_port (line 1890) | def test_run_server_port(monkeypatch, app): function test_run_from_config (line 1915) | def test_run_from_config( function test_max_cookie_size (line 1927) | def test_max_cookie_size(app, client, recwarn): function test_app_freed_on_zero_refcount (line 1958) | def test_app_freed_on_zero_refcount(): FILE: tests/test_blueprints.py function test_blueprint_specific_error_handling (line 8) | def test_blueprint_specific_error_handling(app, client): function test_blueprint_specific_user_error_handling (line 46) | def test_blueprint_specific_user_error_handling(app, client): function test_blueprint_app_error_handling (line 80) | def test_blueprint_app_error_handling(app, client): function test_blueprint_prefix_slash (line 120) | def test_blueprint_prefix_slash(app, client, prefix, rule, url): function test_blueprint_url_defaults (line 131) | def test_blueprint_url_defaults(app, client): function test_blueprint_url_processors (line 151) | def test_blueprint_url_processors(app, client): function test_templates_and_static (line 176) | def test_templates_and_static(test_apps): function test_default_static_max_age (line 223) | def test_default_static_max_age(app: flask.Flask) -> None: function test_templates_list (line 238) | def test_templates_list(test_apps): function test_dotted_name_not_allowed (line 245) | def test_dotted_name_not_allowed(app, client): function test_empty_name_not_allowed (line 250) | def test_empty_name_not_allowed(app, client): function test_dotted_names_from_app (line 255) | def test_dotted_names_from_app(app, client): function test_empty_url_defaults (line 272) | def test_empty_url_defaults(app, client): function test_route_decorator_custom_endpoint (line 286) | def test_route_decorator_custom_endpoint(app, client): function test_route_decorator_custom_endpoint_with_dots (line 318) | def test_route_decorator_custom_endpoint_with_dots(app, client): function test_endpoint_decorator (line 336) | def test_endpoint_decorator(app, client): function test_template_filter (line 353) | def test_template_filter(app): function test_add_template_filter (line 390) | def test_add_template_filter(app): function test_template_filter_with_name (line 403) | def test_template_filter_with_name(app): function test_add_template_filter_with_name (line 416) | def test_add_template_filter_with_name(app): function test_template_filter_with_template (line 429) | def test_template_filter_with_template(app, client): function test_template_filter_after_route_with_template (line 446) | def test_template_filter_after_route_with_template(app, client): function test_add_template_filter_with_template (line 462) | def test_add_template_filter_with_template(app, client): function test_template_filter_with_name_and_template (line 479) | def test_template_filter_with_name_and_template(app, client): function test_add_template_filter_with_name_and_template (line 496) | def test_add_template_filter_with_name_and_template(app, client): function test_template_test (line 513) | def test_template_test(app): function test_add_template_test (line 550) | def test_add_template_test(app): function test_template_test_with_name (line 563) | def test_template_test_with_name(app): function test_add_template_test_with_name (line 576) | def test_add_template_test_with_name(app): function test_template_test_with_template (line 589) | def test_template_test_with_template(app, client): function test_template_test_after_route_with_template (line 606) | def test_template_test_after_route_with_template(app, client): function test_add_template_test_with_template (line 622) | def test_add_template_test_with_template(app, client): function test_template_test_with_name_and_template (line 639) | def test_template_test_with_name_and_template(app, client): function test_add_template_test_with_name_and_template (line 656) | def test_add_template_test_with_name_and_template(app, client): function test_context_processing (line 673) | def test_context_processing(app, client): function test_template_global (line 714) | def test_template_global(app): function test_request_processing (line 768) | def test_request_processing(app, client): function test_app_request_processing (line 799) | def test_app_request_processing(app, client): function test_app_url_processors (line 838) | def test_app_url_processors(app, client): function test_nested_blueprint (line 865) | def test_nested_blueprint(app, client): function test_nested_callback_order (line 914) | def test_nested_callback_order(app, client): function test_nesting_url_prefixes (line 1003) | def test_nesting_url_prefixes( function test_nesting_subdomains (line 1025) | def test_nesting_subdomains(app, client) -> None: function test_child_and_parent_subdomain (line 1044) | def test_child_and_parent_subdomain(app, client) -> None: function test_unique_blueprint_names (line 1066) | def test_unique_blueprint_names(app, client) -> None: function test_self_registration (line 1083) | def test_self_registration(app, client) -> None: function test_blueprint_renaming (line 1089) | def test_blueprint_renaming(app, client) -> None: FILE: tests/test_cli.py function runner (line 37) | def runner(): function test_cli_name (line 41) | def test_cli_name(test_apps): function test_find_best_app (line 48) | def test_find_best_app(test_apps): function test_prepare_import (line 161) | def test_prepare_import(request, value, path, result): function test_locate_app (line 195) | def test_locate_app(test_apps, iname, aname, result): function test_locate_app_raises (line 217) | def test_locate_app_raises(test_apps, iname, aname): function test_locate_app_suppress_raise (line 222) | def test_locate_app_suppress_raise(test_apps): function test_get_version (line 231) | def test_get_version(test_apps, capsys): function test_scriptinfo (line 247) | def test_scriptinfo(test_apps, monkeypatch): function test_app_cli_has_app_context (line 289) | def test_app_cli_has_app_context(app, runner): function test_with_appcontext (line 307) | def test_with_appcontext(runner): function test_appgroup_app_context (line 320) | def test_appgroup_app_context(runner): function test_flaskgroup_app_context (line 348) | def test_flaskgroup_app_context(runner): function test_flaskgroup_debug (line 366) | def test_flaskgroup_debug(runner, set_debug_flag): function test_flaskgroup_nested (line 385) | def test_flaskgroup_nested(app, runner): function test_no_command_echo_loading_error (line 398) | def test_no_command_echo_loading_error(): function test_help_echo_loading_error (line 413) | def test_help_echo_loading_error(): function test_help_echo_exception (line 428) | def test_help_echo_exception(): class TestRoutes (line 446) | class TestRoutes: method app (line 448) | def app(self): method invoke (line 459) | def invoke(self, app, runner): method expect_order (line 463) | def expect_order(self, order, output): method test_simple (line 469) | def test_simple(self, invoke): method test_sort (line 474) | def test_sort(self, app, invoke): method test_all_methods (line 489) | def test_all_methods(self, invoke): method test_no_routes (line 496) | def test_no_routes(self, runner): method test_subdomain (line 503) | def test_subdomain(self, runner): method test_host (line 512) | def test_host(self, runner): function dotenv_not_available (line 522) | def dotenv_not_available(): function test_load_dotenv (line 537) | def test_load_dotenv(monkeypatch): function test_dotenv_path (line 561) | def test_dotenv_path(monkeypatch): function test_dotenv_optional (line 570) | def test_dotenv_optional(monkeypatch): function test_disable_dotenv_from_env (line 578) | def test_disable_dotenv_from_env(monkeypatch, runner): function test_run_cert_path (line 585) | def test_run_cert_path(): function test_run_cert_adhoc (line 603) | def test_run_cert_adhoc(monkeypatch): function test_run_cert_import (line 620) | def test_run_cert_import(monkeypatch): function test_run_cert_no_ssl (line 642) | def test_run_cert_no_ssl(monkeypatch): function test_cli_blueprints (line 649) | def test_cli_blueprints(app): function test_cli_empty (line 692) | def test_cli_empty(app): function test_run_exclude_patterns (line 701) | def test_run_exclude_patterns(): FILE: tests/test_config.py function common_object_test (line 13) | def common_object_test(app): function test_config_from_pyfile (line 19) | def test_config_from_pyfile(): function test_config_from_object (line 25) | def test_config_from_object(): function test_config_from_file_json (line 31) | def test_config_from_file_json(): function test_config_from_file_toml (line 38) | def test_config_from_file_toml(): function test_from_prefixed_env (line 48) | def test_from_prefixed_env(monkeypatch): function test_from_prefixed_env_custom_prefix (line 69) | def test_from_prefixed_env_custom_prefix(monkeypatch): function test_from_prefixed_env_nested (line 79) | def test_from_prefixed_env_nested(monkeypatch): function test_config_from_mapping (line 110) | def test_config_from_mapping(): function test_config_from_class (line 132) | def test_config_from_class(): function test_config_from_envvar (line 144) | def test_config_from_envvar(monkeypatch): function test_config_from_envvar_missing (line 161) | def test_config_from_envvar_missing(monkeypatch): function test_config_missing (line 174) | def test_config_missing(): function test_config_missing_file (line 186) | def test_config_missing_file(): function test_custom_config_class (line 198) | def test_custom_config_class(): function test_session_lifetime (line 211) | def test_session_lifetime(): function test_get_namespace (line 217) | def test_get_namespace(): function test_from_pyfile_weird_encoding (line 244) | def test_from_pyfile_weird_encoding(tmp_path, encoding): FILE: tests/test_converters.py function test_custom_converters (line 8) | def test_custom_converters(app, client): function test_context_available (line 29) | def test_context_available(app, client): FILE: tests/test_helpers.py class FakePath (line 11) | class FakePath: method __init__ (line 18) | def __init__(self, path): method __fspath__ (line 21) | def __fspath__(self): class PyBytesIO (line 25) | class PyBytesIO: method __init__ (line 26) | def __init__(self, *args, **kwargs): method __getattr__ (line 29) | def __getattr__(self, name): class TestSendfile (line 33) | class TestSendfile: method test_send_file (line 34) | def test_send_file(self, app, req_ctx): method test_static_file (line 44) | def test_static_file(self, app, req_ctx): method test_send_from_directory (line 84) | def test_send_from_directory(self, app, req_ctx): class TestUrlFor (line 94) | class TestUrlFor: method test_url_for_with_anchor (line 95) | def test_url_for_with_anchor(self, app, req_ctx): method test_url_for_with_scheme (line 102) | def test_url_for_with_scheme(self, app, req_ctx): method test_url_for_with_scheme_not_external (line 112) | def test_url_for_with_scheme_not_external(self, app, req_ctx): method test_url_for_with_alternating_schemes (line 123) | def test_url_for_with_alternating_schemes(self, app, req_ctx): method test_url_with_method (line 135) | def test_url_with_method(self, app, req_ctx): method test_url_for_with_self (line 156) | def test_url_for_with_self(self, app, req_ctx): function test_redirect_no_app (line 164) | def test_redirect_no_app(): function test_redirect_with_app (line 170) | def test_redirect_with_app(app): function test_abort_no_app (line 180) | def test_abort_no_app(): function test_app_aborter_class (line 188) | def test_app_aborter_class(): function test_abort_with_app (line 199) | def test_abort_with_app(app): class TestNoImports (line 209) | class TestNoImports: method test_name_with_import_error (line 220) | def test_name_with_import_error(self, modules_tmp_path): class TestStreaming (line 228) | class TestStreaming: method test_streaming_with_context (line 229) | def test_streaming_with_context(self, app, client): method test_streaming_with_context_as_decorator (line 242) | def test_streaming_with_context_as_decorator(self, app, client): method test_streaming_with_context_and_custom_close (line 256) | def test_streaming_with_context_and_custom_close(self, app, client): method test_stream_keeps_session (line 287) | def test_stream_keeps_session(self, app, client): method test_async_view (line 301) | def test_async_view(self, app, client): class TestHelpers (line 327) | class TestHelpers: method test_get_debug_flag (line 338) | def test_get_debug_flag(self, monkeypatch, debug, expect): method test_make_response (line 342) | def test_make_response(self): function test_open_resource (line 356) | def test_open_resource(mode): function test_open_resource_exceptions (line 364) | def test_open_resource_exceptions(mode): function test_open_resource_with_encoding (line 372) | def test_open_resource_with_encoding(tmp_path, encoding): FILE: tests/test_instance_config.py function test_explicit_instance_paths (line 8) | def test_explicit_instance_paths(modules_tmp_path): function test_uninstalled_module_paths (line 16) | def test_uninstalled_module_paths(modules_tmp_path, purge_module): function test_uninstalled_package_paths (line 30) | def test_uninstalled_package_paths(modules_tmp_path, purge_module): function test_uninstalled_namespace_paths (line 46) | def test_uninstalled_namespace_paths(tmp_path, monkeypatch, purge_module): function test_installed_module_paths (line 65) | def test_installed_module_paths( function test_installed_package_paths (line 80) | def test_installed_package_paths( function test_prefix_package_paths (line 99) | def test_prefix_package_paths( FILE: tests/test_json.py function test_bad_request_debug_message (line 15) | def test_bad_request_debug_message(app, client, debug): function test_json_bad_requests (line 30) | def test_json_bad_requests(app, client): function test_json_custom_mimetypes (line 39) | def test_json_custom_mimetypes(app, client): function test_json_as_unicode (line 51) | def test_json_as_unicode(test_value, expected, app, app_ctx): function test_json_dump_to_file (line 57) | def test_json_dump_to_file(app, app_ctx): function test_jsonify_basic_types (line 70) | def test_jsonify_basic_types(test_value, app, client): function test_jsonify_dicts (line 78) | def test_jsonify_dicts(app, client): function test_jsonify_arrays (line 105) | def test_jsonify_arrays(app, client): function test_jsonify_datetime (line 136) | def test_jsonify_datetime(app, client, value): class FixedOffset (line 145) | class FixedOffset(datetime.tzinfo): method __init__ (line 152) | def __init__(self, hours, name): method utcoffset (line 156) | def utcoffset(self, dt): method tzname (line 159) | def tzname(self, dt): method dst (line 162) | def dst(self, dt): function test_jsonify_aware_datetimes (line 167) | def test_jsonify_aware_datetimes(tz): function test_jsonify_uuid_types (line 176) | def test_jsonify_uuid_types(app, client): function test_json_decimal (line 191) | def test_json_decimal(): function test_json_attr (line 196) | def test_json_attr(app, client): function test_tojson_filter (line 210) | def test_tojson_filter(app, req_ctx): function test_json_customization (line 223) | def test_json_customization(app, client): function _has_encoding (line 260) | def _has_encoding(name): function test_json_key_sorting (line 270) | def test_json_key_sorting(app, client): function test_html_method (line 340) | def test_html_method(): FILE: tests/test_json_tag.py function test_dump_load_unchanged (line 27) | def test_dump_load_unchanged(data): function test_duplicate_tag (line 32) | def test_duplicate_tag(): function test_custom_tag (line 43) | def test_custom_tag(): function test_tag_interface (line 66) | def test_tag_interface(): function test_tag_order (line 73) | def test_tag_order(): FILE: tests/test_logging.py function reset_logging (line 13) | def reset_logging(pytestconfig): function test_logger (line 36) | def test_logger(app): function test_logger_debug (line 42) | def test_logger_debug(app): function test_existing_handler (line 48) | def test_existing_handler(app): function test_wsgi_errors_stream (line 54) | def test_wsgi_errors_stream(app, client): function test_has_level_handler (line 70) | def test_has_level_handler(): function test_log_view_exception (line 86) | def test_log_view_exception(app, client): FILE: tests/test_regression.py function test_aborting (line 4) | def test_aborting(app): FILE: tests/test_reqctx.py function test_teardown_on_pop (line 16) | def test_teardown_on_pop(app): function test_teardown_with_previous_exception (line 30) | def test_teardown_with_previous_exception(app): function test_teardown_with_handled_exception (line 47) | def test_teardown_with_handled_exception(app): function test_proper_test_request_context (line 63) | def test_proper_test_request_context(app): function test_context_binding (line 107) | def test_context_binding(app): function test_context_test (line 123) | def test_context_test(app): function test_manual_context_binding (line 135) | def test_manual_context_binding(app): class TestGreenletContextCopying (line 149) | class TestGreenletContextCopying: method test_greenlet_context_copying (line 150) | def test_greenlet_context_copying(self, app, client): method test_greenlet_context_copying_api (line 179) | def test_greenlet_context_copying_api(self, app, client): function test_session_error_pops_context (line 205) | def test_session_error_pops_context(): function test_session_dynamic_cookie_name (line 229) | def test_session_dynamic_cookie_name(): function test_bad_environ_raises_bad_request (line 280) | def test_bad_environ_raises_bad_request(): function test_environ_for_valid_idna_completes (line 297) | def test_environ_for_valid_idna_completes(): function test_normal_environ_completes (line 318) | def test_normal_environ_completes(): FILE: tests/test_request.py function test_max_content_length (line 9) | def test_max_content_length(app: Flask, client: FlaskClient) -> None: function test_limit_config (line 25) | def test_limit_config(app: Flask): function test_trusted_hosts_config (line 57) | def test_trusted_hosts_config(app: Flask) -> None: FILE: tests/test_session_interface.py function test_open_session_with_endpoint (line 6) | def test_open_session_with_endpoint(): FILE: tests/test_signals.py function test_template_rendered (line 4) | def test_template_rendered(app, client): function test_before_render_template (line 25) | def test_before_render_template(): function test_request_signals (line 50) | def test_request_signals(): function test_request_exception_signal (line 95) | def test_request_exception_signal(): function test_appcontext_signals (line 115) | def test_appcontext_signals(app, client): function test_flash_signal (line 139) | def test_flash_signal(app): function test_appcontext_tearing_down_signal (line 163) | def test_appcontext_tearing_down_signal(app, client): FILE: tests/test_subclassing.py function test_suppressed_exception_logging (line 6) | def test_suppressed_exception_logging(): FILE: tests/test_templating.py function test_context_processing (line 11) | def test_context_processing(app, client): function test_original_win (line 24) | def test_original_win(app, client): function test_simple_stream (line 33) | def test_simple_stream(app, client): function test_request_less_rendering (line 42) | def test_request_less_rendering(app, app_ctx): function test_standard_context (line 53) | def test_standard_context(app, client): function test_escaping (line 71) | def test_escaping(app, client): function test_no_escaping (line 91) | def test_no_escaping(app, client): function test_escaping_without_template_filename (line 113) | def test_escaping_without_template_filename(app, client, req_ctx): function test_macros (line 118) | def test_macros(app, req_ctx): function test_template_filter (line 123) | def test_template_filter(app): function test_add_template_filter (line 157) | def test_add_template_filter(app): function test_template_filter_with_name (line 167) | def test_template_filter_with_name(app): function test_add_template_filter_with_name (line 177) | def test_add_template_filter_with_name(app): function test_template_filter_with_template (line 187) | def test_template_filter_with_template(app, client): function test_add_template_filter_with_template (line 200) | def test_add_template_filter_with_template(app, client): function test_template_filter_with_name_and_template (line 214) | def test_template_filter_with_name_and_template(app, client): function test_add_template_filter_with_name_and_template (line 227) | def test_add_template_filter_with_name_and_template(app, client): function test_template_test (line 241) | def test_template_test(app): function test_add_template_test (line 275) | def test_add_template_test(app): function test_template_test_with_name (line 285) | def test_template_test_with_name(app): function test_add_template_test_with_name (line 295) | def test_add_template_test_with_name(app): function test_template_test_with_template (line 305) | def test_template_test_with_template(app, client): function test_add_template_test_with_template (line 318) | def test_add_template_test_with_template(app, client): function test_template_test_with_name_and_template (line 332) | def test_template_test_with_name_and_template(app, client): function test_add_template_test_with_name_and_template (line 345) | def test_add_template_test_with_name_and_template(app, client): function test_add_template_global (line 359) | def test_add_template_global(app, app_ctx): function test_custom_template_loader (line 405) | def test_custom_template_loader(client): function test_iterable_loader (line 423) | def test_iterable_loader(app, client): function test_templates_auto_reload (line 443) | def test_templates_auto_reload(app): function test_templates_auto_reload_debug_run (line 475) | def test_templates_auto_reload_debug_run(app, monkeypatch): function test_template_loader_debugging (line 488) | def test_template_loader_debugging(test_apps, monkeypatch): function test_custom_jinja_env (line 524) | def test_custom_jinja_env(): FILE: tests/test_testing.py function test_environ_defaults_from_config (line 15) | def test_environ_defaults_from_config(app, client): function test_environ_defaults (line 30) | def test_environ_defaults(app, client, app_ctx, req_ctx): function test_environ_base_default (line 42) | def test_environ_base_default(app, client): function test_environ_base_modified (line 57) | def test_environ_base_modified(app, client): function test_client_open_environ (line 73) | def test_client_open_environ(app, client, request): function test_specify_url_scheme (line 89) | def test_specify_url_scheme(app, client): function test_path_is_url (line 101) | def test_path_is_url(app): function test_environbuilder_json_dumps (line 109) | def test_environbuilder_json_dumps(app): function test_blueprint_with_subdomain (line 116) | def test_blueprint_with_subdomain(): function test_redirect_session (line 140) | def test_redirect_session(app, client, app_ctx): function test_session_transactions (line 157) | def test_session_transactions(app, client): function test_session_transactions_no_null_sessions (line 174) | def test_session_transactions_no_null_sessions(): function test_session_transactions_keep_context (line 184) | def test_session_transactions_keep_context(app, client, req_ctx): function test_session_transaction_needs_cookies (line 192) | def test_session_transaction_needs_cookies(app): function test_test_client_context_binding (line 200) | def test_test_client_context_binding(app, client): function test_reuse_client (line 229) | def test_reuse_client(client): function test_full_url_request (line 239) | def test_full_url_request(app, client): function test_json_request_and_response (line 251) | def test_json_request_and_response(app, client): function test_client_json_no_app_context (line 270) | def test_client_json_no_app_context(app, client): function test_subdomain (line 290) | def test_subdomain(): function test_nosubdomain (line 309) | def test_nosubdomain(app, client): function test_cli_runner_class (line 326) | def test_cli_runner_class(app): function test_cli_invoke (line 338) | def test_cli_invoke(app): function test_cli_custom_obj (line 352) | def test_cli_custom_obj(app): function test_client_pop_all_preserved (line 370) | def test_client_pop_all_preserved(app, req_ctx, client): FILE: tests/test_user_error_handler.py function test_error_handler_no_match (line 10) | def test_error_handler_no_match(app, client): function test_error_handler_subclass (line 61) | def test_error_handler_subclass(app): function test_error_handler_http_subclass (line 100) | def test_error_handler_http_subclass(app): function test_error_handler_blueprint (line 136) | def test_error_handler_blueprint(app): function test_default_error_handler (line 163) | def test_default_error_handler(): class TestGenericHandlers (line 217) | class TestGenericHandlers: class Custom (line 220) | class Custom(Exception): method app (line 224) | def app(self, app): method report_error (line 244) | def report_error(self, e): method test_handle_class_or_code (line 253) | def test_handle_class_or_code(self, app, client, to_handle): method test_handle_generic_http (line 269) | def test_handle_generic_http(self, app, client): method test_handle_generic (line 283) | def test_handle_generic(self, app, client): FILE: tests/test_views.py function common_test (line 8) | def common_test(app): function test_basic_view (line 18) | def test_basic_view(app): function test_method_based_view (line 29) | def test_method_based_view(app): function test_view_patching (line 42) | def test_view_patching(app): function test_view_inheritance (line 63) | def test_view_inheritance(app, client): function test_view_decorators (line 81) | def test_view_decorators(app, client): function test_view_provide_automatic_options_attr_disable (line 102) | def test_view_provide_automatic_options_attr_disable( function test_view_provide_automatic_options_attr_enable (line 118) | def test_view_provide_automatic_options_attr_enable( function test_provide_automatic_options_method_disable (line 137) | def test_provide_automatic_options_method_disable( function test_implicit_head (line 153) | def test_implicit_head(app, client): function test_explicit_head (line 167) | def test_explicit_head(app, client): function test_endpoint_override (line 183) | def test_endpoint_override(app): function test_methods_var_inheritance (line 201) | def test_methods_var_inheritance(app, client): function test_multiple_inheritance (line 219) | def test_multiple_inheritance(app, client): function test_remove_method_from_parent (line 238) | def test_remove_method_from_parent(app, client): function test_init_once (line 257) | def test_init_once(app, client): FILE: tests/type_check/typing_app_decorators.py function after_sync (line 10) | def after_sync(response: Response) -> Response: function after_async (line 15) | async def after_async(response: Response) -> Response: function before_sync (line 20) | def before_sync() -> None: ... function before_async (line 24) | async def before_async() -> None: ... function teardown_sync (line 28) | def teardown_sync(exc: BaseException | None) -> None: ... function teardown_async (line 32) | async def teardown_async(exc: BaseException | None) -> None: ... FILE: tests/type_check/typing_error_handler.py function handle_400 (line 16) | def handle_400(e: BadRequest) -> str: function handle_custom (line 21) | def handle_custom(e: ValueError) -> str: function handle_accept_base (line 26) | def handle_accept_base(e: Exception) -> str: function handle_multiple (line 32) | def handle_multiple(e: BadRequest | NotFound) -> str: FILE: tests/type_check/typing_route.py function hello_str (line 17) | def hello_str() -> str: function hello_bytes (line 22) | def hello_bytes() -> bytes: function hello_json (line 27) | def hello_json() -> Response: function hello_json_dict (line 32) | def hello_json_dict() -> dict[str, t.Any]: function hello_json_list (line 37) | def hello_json_list() -> list[t.Any]: class StatusJSON (line 41) | class StatusJSON(t.TypedDict): function typed_dict (line 46) | def typed_dict() -> StatusJSON: function hello_generator (line 51) | def hello_generator() -> t.Generator[str, None, None]: function hello_generator_expression (line 60) | def hello_generator_expression() -> t.Iterator[bytes]: function hello_iterator (line 65) | def hello_iterator() -> t.Iterator[str]: function tuple_status (line 71) | def tuple_status(code: int = 200) -> tuple[str, int]: function tuple_status_enum (line 76) | def tuple_status_enum() -> tuple[str, int]: function tuple_headers (line 81) | def tuple_headers() -> tuple[str, dict[str, str]]: function return_template (line 87) | def return_template(name: str | None = None) -> str: function return_template_stream (line 92) | def return_template_stream() -> t.Iterator[str]: function async_route (line 97) | async def async_route() -> str: class RenderTemplateView (line 101) | class RenderTemplateView(View): method __init__ (line 102) | def __init__(self: RenderTemplateView, template_name: str) -> None: method dispatch_request (line 105) | def dispatch_request(self: RenderTemplateView) -> str: