mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-11 16:34:02 +01:00
Fourth module of the tool/ coverage task, and the first of the four large ones. Split into checks and loaders/main() up front rather than discovering the 250-line cap afterwards -- 245 and 225 lines. Every check is asserted on its *message*, not merely on having raised. The whole reason this tool exists is that the misconfigurations it catches are indistinguishable once data has started moving, so a check firing with the wrong explanation sends the reader to the wrong place. That includes the wrong-region 404, which answers with a correctUrl body rather than an error and would otherwise pass preflight, pass sign-in against a different host entirely, and only break mid-migration. main()'s stated contract is pinned too: cheapest-first ordering, and that it short-circuits -- a typo must be reported without a network round trip, so the later network checks must not run at all. The module's config paths are module-level constants pointing into the real ~/.config/crdt-sync, so the fixture redirecting them at tmp_path is autouse: a test that forgot it would read and report on the user's actual credentials. Confirmed afterwards that ~/.config/crdt-sync was not touched. crdt_sync 293 -> 333 passed, still 100%. 4 of 7 tool/ modules done. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CFSGeWxHPY5rHUGrPqhcmG |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_config_client.py | ||
| test_config_credentials.py | ||
| test_config.py | ||
| test_device.py | ||
| test_firebase_auth_google.py | ||
| test_firebase_auth_session.py | ||
| test_firebase_auth_tokens.py | ||
| test_firebase_auth.py | ||
| test_firebase_writes.py | ||
| test_firebase.py | ||
| test_github_writes.py | ||
| test_github.py | ||
| test_hlc.py | ||
| test_log.py | ||
| test_mirror_fallback.py | ||
| test_mirror.py | ||
| test_record.py | ||
| test_store.py | ||
| test_sync_revisions_backends.py | ||
| test_sync_revisions_peers.py | ||
| test_sync_revisions.py | ||
| test_sync_skips.py | ||
| test_sync.py | ||
| test_tool_google_id_token_cli.py | ||
| test_tool_google_id_token.py | ||
| test_tool_interop_seed.py | ||
| test_tool_oauth_callback.py | ||
| test_tool_preflight_firebase_main.py | ||
| test_tool_preflight_firebase.py | ||