mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-15 03:10:58 +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 |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| _autherrors.py | ||
| _config.py | ||
| _credentials.py | ||
| _device.py | ||
| _fberrors.py | ||
| _fbkeys.py | ||
| _firebase_auth.py | ||
| _firebase.py | ||
| _gherrors.py | ||
| _github.py | ||
| _hlc.py | ||
| _http.py | ||
| _log.py | ||
| _mirror.py | ||
| _pull.py | ||
| _record.py | ||
| _remote.py | ||
| _revisions.py | ||
| _store.py | ||
| _sync.py | ||
| _syncargs.py | ||
| _syncstate.py | ||