mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Rename --help-config to --help-settings, closes #1431
This commit is contained in:
parent
e837095ef3
commit
77f46297a8
3 changed files with 16 additions and 8 deletions
|
|
@ -5,6 +5,7 @@ from .fixtures import (
|
|||
EXPECTED_PLUGINS,
|
||||
)
|
||||
import asyncio
|
||||
from datasette.app import SETTINGS
|
||||
from datasette.plugins import DEFAULT_PLUGINS
|
||||
from datasette.cli import cli, serve
|
||||
from datasette.version import __version__
|
||||
|
|
@ -147,7 +148,7 @@ def test_metadata_yaml():
|
|||
root=False,
|
||||
version_note=None,
|
||||
get=None,
|
||||
help_config=False,
|
||||
help_settings=False,
|
||||
pdb=False,
|
||||
crossdb=False,
|
||||
open_browser=False,
|
||||
|
|
@ -291,3 +292,10 @@ def test_weird_database_names(ensure_eventloop, tmpdir, filename):
|
|||
cli, [db_path, "--get", "/{}".format(urllib.parse.quote(filename_no_stem))]
|
||||
)
|
||||
assert result2.exit_code == 0, result2.output
|
||||
|
||||
|
||||
def test_help_settings():
|
||||
runner = CliRunner()
|
||||
result = runner.invoke(cli, ["--help-settings"])
|
||||
for setting in SETTINGS:
|
||||
assert setting.name in result.output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue