mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-16 09:39:29 +08:00
3aa3f00251
Update deeplink import tests to use the new in-memory database instead of filesystem-based configuration. Changes: - Replace MultiAppConfig with Database-based AppState - Use Database::memory() for isolated test instances - Update provider verification to query database directly - Add icon field verification in test assertions - Remove filesystem config.json validation (now DB-backed) Test improvements: - Faster execution (no disk I/O) - Better isolation (each test gets fresh DB instance) - No cleanup required (memory DB auto-discarded) - Consistent with v3.8+ storage architecture Updated tests: - deeplink_import_claude_provider_persists_to_db - deeplink_import_codex_provider_builds_auth_and_config Both tests verify that deeplink imports correctly persist provider data to the database with all expected fields.