dclient/tests
Simon Willison 742d46de05 v1 to v2 config migration with tests
Add _migrate_v1_to_v2() to convert aliases.json to config.json format.
Single-path-segment URLs are split into instance URL + default_database.
Auth keys are migrated from URLs to alias names. Original files are
backed up as .bak.

7 tests covering simple migration, no path segment, auth migration,
URL fallback for unmatched auth, skip if config exists, skip if no
aliases, and multi-path-segment URLs.

refs #29

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 15:22:05 -08:00
..
test_alias_v2.py Tests and docs for v2 introspection commands and alias features 2026-02-24 15:21:58 -08:00
test_cli_auth.py v2 config system, CLI rewrite, and updated core commands 2026-02-24 15:21:52 -08:00
test_commands_v2.py Tests and docs for v2 introspection commands and alias features 2026-02-24 15:21:58 -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_migration.py v1 to v2 config migration with tests 2026-02-24 15:22:05 -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