mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Show error if --setting hash_urls 1 used, refs #1661
This commit is contained in:
parent
d4f60c2388
commit
8658c66438
3 changed files with 35 additions and 8 deletions
|
|
@ -310,3 +310,10 @@ def test_help_settings():
|
|||
result = runner.invoke(cli, ["--help-settings"])
|
||||
for setting in SETTINGS:
|
||||
assert setting.name in result.output
|
||||
|
||||
|
||||
def test_help_error_on_hash_urls_setting():
|
||||
runner = CliRunner()
|
||||
result = runner.invoke(cli, ["--setting", "hash_urls", 1])
|
||||
assert result.exit_code == 2
|
||||
assert 'The hash_urls setting has been removed' in result.output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue