datasette/tests
Simon Willison 6f6d0ff2b4
URL hashing is now off by default - closes #418
Prior to this commit Datasette would calculate the content hash of every
database and redirect to a URL containing that hash, like so:

    https://v0-27.datasette.io/fixtures => https://v0-27.datasette.io/fixtures-dd88475

This assumed that all databases were opened in immutable mode and were not
expected to change.

This will be changing as a result of #419 - so this commit takes the first step
in implementing that change by changing this default behaviour. Datasette will
now only redirect hash-free URLs under two circumstances:

* The new `hash_urls` config option is set to true (it defaults to false).
* The user passes `?_hash=1` in the URL
2019-03-17 15:55:04 -07:00
..
__init__.py Broke up test_app into test_api and test_html 2017-12-15 04:08:24 -08:00
fixtures.py URL hashing is now off by default - closes #418 2019-03-17 15:55:04 -07:00
test_api.py URL hashing is now off by default - closes #418 2019-03-17 15:55:04 -07:00
test_csv.py render_cell(value, column, table, database, datasette) 2018-08-28 03:03:01 -07:00
test_docs.py Added plugin_config() method 2018-08-28 01:35:21 -07:00
test_html.py URL hashing is now off by default - closes #418 2019-03-17 15:55:04 -07:00
test_inspect.py Import pysqlite3 if available, closes #360 (#361) 2018-08-15 17:58:56 -07:00
test_plugins.py Fix json.loads in Python 3.5 2018-08-28 17:55:30 +01:00
test_publish_heroku.py Fix for test failure with Click 7.0 2019-03-14 22:00:13 -07:00
test_publish_now.py Unit tests for publish now/heroku - closes #348 2018-07-25 22:45:47 -07:00
test_utils.py URL hashing is now off by default - closes #418 2019-03-17 15:55:04 -07:00