flask/tests
David Lord dc11cdb4a4
move send_file and send_from_directory to Werkzeug
The implementations were moved to Werkzeug, Flask's functions become
wrappers around Werkzeug to pass some Flask-specific values.

cache_timeout is renamed to max_age. SEND_FILE_MAX_AGE_DEFAULT,
app.send_file_max_age_default, and app.get_send_file_max_age defaults
to None. This tells the browser to use conditional requests rather than
a 12 hour cache.

attachment_filename is renamed to download_name, and is always sent if
a name is known.

Deprecate helpers.safe_join in favor of werkzeug.utils.safe_join.

Removed most of the send_file tests, they're tested in Werkzeug.

In the file upload example, renamed the uploaded_file view to
download_file to avoid a common source of confusion.
2020-11-05 09:27:52 -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 include samesite and secure when removing session cookie (#3726) 2020-11-04 18:16:05 -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 tests for new werkzeug client (#3827) 2020-11-04 18:00:21 -08:00
test_json_tag.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_logging.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_regression.py move send_file and send_from_directory to Werkzeug 2020-11-05 09:27:52 -08:00
test_reqctx.py remove unused module docstrings 2020-04-04 12:28:08 -07: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