mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Also remove default_cache_ttl_hashed setting, refs #1661
This commit is contained in:
parent
8658c66438
commit
9979dcd07f
5 changed files with 16 additions and 35 deletions
|
|
@ -798,14 +798,12 @@ def test_settings_json(app_client):
|
|||
"allow_facet": True,
|
||||
"suggest_facets": True,
|
||||
"default_cache_ttl": 5,
|
||||
"default_cache_ttl_hashed": 365 * 24 * 60 * 60,
|
||||
"num_sql_threads": 1,
|
||||
"cache_size_kb": 0,
|
||||
"allow_csv_stream": True,
|
||||
"max_csv_mb": 100,
|
||||
"truncate_cells_html": 2048,
|
||||
"force_https_urls": False,
|
||||
"hash_urls": False,
|
||||
"template_debug": False,
|
||||
"trace_debug": False,
|
||||
"base_url": "/",
|
||||
|
|
|
|||
|
|
@ -312,8 +312,9 @@ def test_help_settings():
|
|||
assert setting.name in result.output
|
||||
|
||||
|
||||
def test_help_error_on_hash_urls_setting():
|
||||
@pytest.mark.parametrize("setting", ("hash_urls", "default_cache_ttl_hashed"))
|
||||
def test_help_error_on_hash_urls_setting(setting):
|
||||
runner = CliRunner()
|
||||
result = runner.invoke(cli, ["--setting", "hash_urls", 1])
|
||||
result = runner.invoke(cli, ["--setting", setting, 1])
|
||||
assert result.exit_code == 2
|
||||
assert 'The hash_urls setting has been removed' in result.output
|
||||
assert "The hash_urls setting has been removed" in result.output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue