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
|
|
@ -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