mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-13 15:51:01 +01:00
|
Some checks are pending
crdt-sync pre-commit / pre-commit (push) Waiting to run
crdt-sync tests / test (3.10) (push) Waiting to run
crdt-sync tests / test (3.11) (push) Waiting to run
crdt-sync tests / test (3.12) (push) Waiting to run
file length / file-length (push) Waiting to run
palette drift / palette (push) Waiting to run
CI caught this: 8 tests failed on the runner with "/home/runner/.config/ crdt-sync/password could not be read". They passed here for the worst possible reason -- that file exists on this machine, so the tests were reading the user's actual sync password. _CONFIG is a real FirebaseConfig, and link_google() calls config.read_password(), which falls back to PASSWORD_FILE when given no path. The linking tests now pass a MagicMock(spec=FirebaseConfig) with read_password stubbed, which is what the one test that already asserted on the password was doing; that test now shares the helper instead of keeping its own copy. Adding the helper pushed the file to 265 lines, so the token-inspection tests move into test_tool_link_google_token.py -- a three-way split matching the module's three concerns (inspect / link / CLI) at 196, 82 and 223 lines. Also fixes a mypy finding in the seed_session ordering test, which used `list.append(...) or "value"` to record call order in a lambda. append returns None, so the expression only worked by accident; replaced with named functions. Verified the way the earlier local run could not: HOME pointed at an empty temp directory, reproducing the runner. 432 passed, 1333 statements and 234 branches at 100%. ~/.config/crdt-sync/password untouched (mtime still Aug 4). Worth keeping as a rule: for code that reads ~/.config, a green local run proves nothing unless HOME is redirected first. 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_link_google_main.py | ||
| test_tool_link_google_token.py | ||
| test_tool_link_google.py | ||
| test_tool_migrate_github_main.py | ||
| test_tool_migrate_github.py | ||
| test_tool_oauth_callback.py | ||
| test_tool_preflight_firebase_main.py | ||
| test_tool_preflight_firebase.py | ||
| test_tool_seed_session_main.py | ||
| test_tool_seed_session.py | ||