flask/tests
pgjones 705e52684a
Add syntatic sugar for route registration
This takes a popular API whereby instead of passing the HTTP method as
an argument to route it is instead used as the method name i.e.

    @app.route("/", methods=["POST"])

is now writeable as,

    @app.post("/")

This is simply syntatic sugar, it doesn't do anything else, but makes
it slightly easier for users.

I've included all the methods that are relevant and aren't auto
generated i.e. not connect, head, options, and trace.
2021-03-08 08:55:14 -08:00
..
static clean up secret key docs 2017-06-28 07:58:06 -07:00
templates add pre-commit config for flake8 2019-06-01 09:13:46 -04:00
test_apps deprecate passing script_info to factory 2020-04-07 15:54:36 -07:00
conftest.py cleaner message when CLI can't load app 2020-07-30 18:36:55 -07:00
test_appctx.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_basic.py Add syntatic sugar for route registration 2021-03-08 08:55:14 -08:00
test_blueprints.py move send_file and send_from_directory to Werkzeug 2020-11-05 09:27:52 -08:00
test_cli.py cleaner message when CLI can't load app 2020-07-30 18:36:55 -07:00
test_config.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_converters.py apply pyupgrade 2020-04-04 12:10:00 -07:00
test_helpers.py move send_file and send_from_directory to Werkzeug 2020-11-05 09:27:52 -08:00
test_instance_config.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_json.py update json.dumps for http_date changes 2021-02-25 09:45:55 -08:00
test_json_tag.py update json.dumps for http_date changes 2021-02-25 09:45:55 -08:00
test_logging.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_regression.py remove test relying on Werkzeug Local internals 2021-02-08 18:04:02 -08:00
test_reqctx.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_session_interface.py Ensure session_interface.open_session is called after URL matching (#3776) 2021-02-01 20:41:17 -08:00
test_signals.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_subclassing.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_templating.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_testing.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_user_error_handler.py add assert message for errorhandler exception type 2020-04-16 10:49:42 -07:00
test_views.py remove unused module docstrings 2020-04-04 12:28:08 -07:00