dclient/tests
Simon Willison 3621f13263 v2 config system, CLI rewrite, and updated core commands
Replace aliases.json with config.json storing instances with
default_database. Instance resolution: -i flag → config default →
DATASETTE_URL. Database resolution: -d flag → instance default_database →
DATASETTE_DATABASE. Token resolution: --token → auth.json by alias →
auth.json by URL → DATASETTE_TOKEN.

Add click-default-group dependency for bare SQL shortcut support.
Add DCLIENT_CONFIG_DIR env var to override config directory.

Rewrite query, insert, get, and actor commands for v2 API where
instance is always -i flag. Add upsert command sharing insert
implementation. Add databases, tables, schema, plugins commands.
Add default_query hidden command for bare SQL shortcut.

Add alias default, alias default-db subcommands.
Add auth status subcommand.

refs #29

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:21:52 -08:00
..
test_cli_auth.py v2 config system, CLI rewrite, and updated core commands 2026-02-24 15:21:52 -08:00
test_config.py v2 config system, CLI rewrite, and updated core commands 2026-02-24 15:21:52 -08:00
test_datasette_plugin.py Rename 'datasette client' to 'datasette dt', closes #18 2024-02-25 11:10:53 -08:00
test_env.py v2 config system, CLI rewrite, and updated core commands 2026-02-24 15:21:52 -08:00
test_insert.py v2 config system, CLI rewrite, and updated core commands 2026-02-24 15:21:52 -08:00
test_query.py v2 config system, CLI rewrite, and updated core commands 2026-02-24 15:21:52 -08:00
test_utils.py dclient auth commands 2023-07-17 16:23:53 -07:00