The Python micro framework for building web applications.
329 matches across 8 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_basic.py | 1396 | def test_build_error_handler_reraise(app): |
| LOW | tests/test_basic.py | 1398 | def handler_raises_build_error(error, endpoint, values): |
| LOW | tests/test_basic.py | 1407 | def test_url_for_passes_special_values_to_build_error_handler(app): |
| LOW | tests/test_basic.py | 1454 | def test_static_url_empty_path(app): |
| LOW | tests/test_basic.py | 1461 | def test_static_url_empty_path_default(app): |
| LOW | tests/test_basic.py | 1468 | def test_static_folder_with_pathlib_path(app): |
| LOW | tests/test_basic.py | 1477 | def test_static_folder_with_ending_slash(): |
| LOW | tests/test_basic.py | 42 | def test_options_on_multiple_rules(app, client): |
| LOW | tests/test_basic.py | 67 | def test_method_route_no_methods(app): |
| LOW | tests/test_basic.py | 72 | def test_provide_automatic_options_attr_disable( |
| LOW | tests/test_basic.py | 86 | def test_provide_automatic_options_attr_enable( |
| LOW | tests/test_basic.py | 103 | def test_provide_automatic_options_arg_disable( |
| LOW | tests/test_basic.py | 116 | def test_provide_automatic_options_method_disable( |
| LOW | tests/test_basic.py | 152 | def test_disallow_string_for_allowed_methods(app): |
| LOW | tests/test_basic.py | 288 | def test_session_using_application_root(app, client): |
| LOW | tests/test_basic.py | 310 | def test_session_using_session_settings(app, client): |
| LOW | tests/test_basic.py | 353 | def test_session_using_samesite_attribute(app, client): |
| LOW | tests/test_basic.py | 393 | def test_session_secret_key_fallbacks(app, client) -> None: |
| LOW | tests/test_basic.py | 467 | def test_session_special_types(app, client): |
| LOW | tests/test_basic.py | 498 | def test_session_cookie_setting(app): |
| LOW | tests/test_basic.py | 600 | def test_session_refresh_vary(app, client): |
| LOW | tests/test_basic.py | 732 | def test_request_preprocessing_early_return(app, client): |
| LOW | tests/test_basic.py | 759 | def test_after_request_processing(app, client): |
| LOW | tests/test_basic.py | 774 | def test_teardown_request_handler(app, client): |
| LOW | tests/test_basic.py | 792 | def test_teardown_request_handler_debug_mode(app, client): |
| LOW | tests/test_basic.py | 810 | def test_teardown_request_handler_error(app, client): |
| LOW | tests/test_basic.py | 848 | def test_before_after_request_order(app, client): |
| LOW | tests/test_basic.py | 924 | def test_error_handling_processing(app, client): |
| LOW | tests/test_basic.py | 945 | def test_baseexception_error_handling(app, client): |
| LOW | tests/test_basic.py | 956 | def test_before_request_and_routing_errors(app, client): |
| LOW | tests/test_basic.py | 986 | def test_http_error_subclass_handling(app, client): |
| LOW | tests/test_basic.py | 991 | def handle_forbidden_subclass(e): |
| LOW | tests/test_basic.py | 1018 | def test_errorhandler_precedence(app, client): |
| LOW | tests/test_basic.py | 1055 | def test_trap_bad_request_key_error(app, client, debug, trap, expect_key, expect_abort): |
| LOW | tests/test_basic.py | 1086 | def test_trapping_of_all_http_exceptions(app, client): |
| LOW | tests/test_basic.py | 1097 | def test_error_handler_after_processor_error(app, client): |
| LOW | tests/test_basic.py | 1126 | def test_enctype_debug_helper(app, client): |
| LOW | tests/test_basic.py | 1235 | def test_response_type_errors(): |
| LOW | tests/test_basic.py | 1306 | def test_make_response_with_response_instance(app, req_ctx): |
| LOW | tests/test_basic.py | 1328 | def test_jsonify_no_prettyprint(app, compact): |
| LOW | tests/test_basic.py | 1352 | def test_jsonify_args_and_kwargs_check(app, req_ctx): |
| LOW | tests/test_basic.py | 1443 | def test_static_url_path_with_ending_slash(): |
| LOW | tests/test_basic.py | 1488 | def test_static_route_with_host_matching(): |
| LOW | tests/test_basic.py | 1526 | def test_server_name_matching( |
| LOW | tests/test_basic.py | 1562 | def test_server_name_subdomain(): |
| LOW | tests/test_basic.py | 1608 | def test_exception_propagation(app, client, key): |
| LOW | tests/test_basic.py | 1628 | def test_werkzeug_passthrough_errors( |
| LOW | tests/test_basic.py | 1671 | def test_inject_blueprint_url_defaults(app): |
| LOW | tests/test_basic.py | 1704 | def test_no_setup_after_first_request(app, client): |
| LOW | tests/test_basic.py | 1719 | def test_routing_redirect_debugging(monkeypatch, app, client): |
| LOW | tests/test_basic.py | 1739 | def test_route_decorator_custom_endpoint(app, client): |
| LOW | tests/test_basic.py | 1772 | def test_g_iteration_protocol(app_ctx): |
| LOW | tests/test_basic.py | 1780 | def test_subdomain_basic_support(): |
| LOW | tests/test_basic.py | 1813 | def test_subdomain_matching_with_ports(): |
| LOW | tests/test_basic.py | 1827 | def test_subdomain_matching_other_name(matching): |
| LOW | tests/test_basic.py | 1862 | def test_multi_route_class_views(app, client): |
| LOW | tests/test_basic.py | 1958 | def test_app_freed_on_zero_refcount(): |
| LOW | tests/test_signals.py | 25 | def test_before_render_template(): |
| LOW | tests/test_signals.py | 95 | def test_request_exception_signal(): |
| LOW | tests/test_signals.py | 163 | def test_appcontext_tearing_down_signal(app, client): |
| 150 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_request.py | 1 | |
| LOW | tests/test_reqctx.py | 1 | |
| LOW | tests/test_cli.py | 524 | |
| LOW | tests/test_apps/helloworld/wsgi.py | 1 | |
| LOW | tests/type_check/typing_route.py | 1 | |
| LOW | tests/type_check/typing_app_decorators.py | 1 | |
| LOW | tests/type_check/typing_error_handler.py | 1 | |
| LOW | examples/javascript/js_example/__init__.py | 5 | |
| LOW | src/flask/logging.py | 1 | |
| LOW | src/flask/signals.py | 1 | |
| LOW | src/flask/sessions.py | 1 | |
| LOW | src/flask/config.py | 1 | |
| LOW | src/flask/templating.py | 1 | |
| LOW | src/flask/globals.py | 1 | |
| LOW | src/flask/__init__.py | 1 | |
| LOW | src/flask/__init__.py | 2 | |
| LOW | src/flask/__init__.py | 3 | |
| LOW | src/flask/__init__.py | 4 | |
| LOW | src/flask/__init__.py | 5 | |
| LOW | src/flask/__init__.py | 6 | |
| LOW | src/flask/__init__.py | 7 | |
| LOW | src/flask/__init__.py | 8 | |
| LOW | src/flask/__init__.py | 9 | |
| LOW | src/flask/__init__.py | 10 | |
| LOW | src/flask/__init__.py | 11 | |
| LOW | src/flask/__init__.py | 12 | |
| LOW | src/flask/__init__.py | 13 | |
| LOW | src/flask/__init__.py | 14 | |
| LOW | src/flask/__init__.py | 15 | |
| LOW | src/flask/__init__.py | 16 | |
| LOW | src/flask/__init__.py | 17 | |
| LOW | src/flask/__init__.py | 18 | |
| LOW | src/flask/__init__.py | 19 | |
| LOW | src/flask/__init__.py | 20 | |
| LOW | src/flask/__init__.py | 21 | |
| LOW | src/flask/__init__.py | 22 | |
| LOW | src/flask/__init__.py | 23 | |
| LOW | src/flask/__init__.py | 24 | |
| LOW | src/flask/__init__.py | 25 | |
| LOW | src/flask/__init__.py | 26 | |
| LOW | src/flask/__init__.py | 27 | |
| LOW | src/flask/__init__.py | 28 | |
| LOW | src/flask/__init__.py | 29 | |
| LOW | src/flask/__init__.py | 30 | |
| LOW | src/flask/__init__.py | 31 | |
| LOW | src/flask/__init__.py | 32 | |
| LOW | src/flask/__init__.py | 33 | |
| LOW | src/flask/__init__.py | 34 | |
| LOW | src/flask/__init__.py | 35 | |
| LOW | src/flask/__init__.py | 36 | |
| LOW | src/flask/__init__.py | 37 | |
| LOW | src/flask/__init__.py | 38 | |
| LOW | src/flask/__init__.py | 39 | |
| LOW | src/flask/blueprints.py | 1 | |
| LOW | src/flask/blueprints.py | 11 | |
| LOW | src/flask/cli.py | 1 | |
| LOW | src/flask/cli.py | 810 | |
| LOW | src/flask/wrappers.py | 1 | |
| LOW | src/flask/app.py | 1 | |
| LOW | src/flask/debughelpers.py | 1 | |
| 14 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/test_reqctx.py | 23 | ctx.push() |
| HIGH | tests/test_reqctx.py | 126 | ctx.push() |
| HIGH | tests/test_reqctx.py | 140 | ctx.push() |
| HIGH | src/flask/app.py | 1596 | ctx.push() |
| HIGH | src/flask/ctx.py | 507 | self.push() |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | examples/celery/requirements.txt | 1 | # |
| LOW | examples/celery/requirements.txt | 21 | # click-plugins |
| LOW | examples/celery/requirements.txt | 41 | # werkzeug |
| LOW | src/flask/views.py | 61 | #: decorator. |
| LOW | src/flask/sansio/app.py | 161 | #: Defaults to :class:`werkzeug.exceptions.Aborter`. |
| LOW | src/flask/sansio/app.py | 181 | #: Renamed from ``request_globals_class`. |
| LOW | src/flask/sansio/app.py | 201 | #: default it's implicitly enabled. |
| LOW | src/flask/sansio/app.py | 241 | #: the environment is created (accessing :attr:`jinja_env`) will |
| LOW | src/flask/sansio/app.py | 341 | |
| LOW | src/flask/sansio/app.py | 361 | |
| LOW | src/flask/sansio/app.py | 381 | #: case of a "Flask-Foo" extension in `flask_foo`, the key would be |
| LOW | src/flask/sansio/scaffold.py | 101 | |
| LOW | src/flask/sansio/scaffold.py | 121 | #: This data structure is internal. It should not be modified |
| LOW | src/flask/sansio/scaffold.py | 141 | |
| LOW | src/flask/sansio/scaffold.py | 161 | #: |
| LOW | src/flask/sansio/scaffold.py | 181 | #: directly and its format may change at any time. |
| LOW | src/flask/sansio/scaffold.py | 201 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_basic.py | 823 | except Exception: |
| LOW | tests/test_basic.py | 835 | except Exception: |
| LOW | tests/test_reqctx.py | 38 | except Exception: |
| LOW | tests/test_reqctx.py | 57 | except Exception: |
| LOW | tests/test_appctx.py | 68 | except Exception: |
| LOW | tests/test_appctx.py | 87 | except Exception: |
| LOW | src/flask/config.py | 163 | except Exception: |
| LOW | src/flask/cli.py | 650 | except Exception: |
| LOW | src/flask/cli.py | 956 | except Exception as e: |
| LOW | src/flask/app.py | 1017 | except Exception as e: |
| LOW | src/flask/app.py | 1045 | except Exception: |
| LOW | src/flask/app.py | 1598 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/flask/cli.py | 41 | |
| LOW | src/flask/cli.py | 333 | |
| LOW | src/flask/app.py | 1224 | |
| LOW | src/flask/app.py | 1366 | |
| LOW | src/flask/app.py | 1420 | |
| LOW | src/flask/sansio/blueprints.py | 273 | |
| LOW | src/flask/sansio/app.py | 868 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/flask/app.py | 868 | """This method is called whenever an exception occurs that |
| MEDIUM | src/flask/app.py | 1054 | """This method is called to create the default ``OPTIONS`` response. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/flask/sessions.py | 101 | """The basic interface you have to implement in order to replace the |
| MEDIUM | src/flask/app.py | 1395 | """Can be overridden in order to modify the response object |