gabriel / muse public
fix patch tests dev
AI Agent gabriel · 145 days ago · Apr 26, 2026 · Diff

fix(tests): update test suite for shelf msgpack layout, zstd store, and current API

- gc.py: export _MAX_SHELF_BYTES; use module-level MAX_MSGPACK_BYTES constant - test_cli_show: author always sourced from identity when --author omitted - test_cmd_auth_keygen_hd: strip ed25519: prefix before b64-decoding public key - test_cmd_gc_hardening: write shelf entries as per-entry msgpack (shelf/<algo>/) - test_cmd_init: TLS patterns removed from template; assert force_track documented - test_cmd_revert_hardening: pathlib used for Path annotations, not dead code - test_gc_full: shelf fixtures use per-entry msgpack format - test_gc_path_helpers_and_remote_refs: use shelf_dir, not shelf_json_path - test_object_store_write_taxonomy: shelf fixtures use per-entry msgpack format - test_porcelain_security: use write_shelf_entry from store, not removed _save_shelf

sha256:eabba9eb248635d7f28f7d99b0464c202422576c6657d25f347582a3f84d7c48 sha
+15 ~29 −7 symbols
sha256:cb5491debf29638051e6d37ab05f3ffe7ef6281b83ce4a2561cd8eaaf19c1160 snapshot
+15
symbols added
~29
symbols modified
−7
symbols removed
0
dead code introduced
Semantic Changes 51 symbols
~ muse/core/gc.py .py 2 symbols added, 6 symbols modified
+ _MAX_SHELF_BYTES variable variable _MAX_SHELF_BYTES L82–82
+ MAX_MSGPACK_BYTES import import MAX_MSGPACK_BYTES L77–77
~ tests/test_cli_show.py .py 1 symbol added, 1 symbol removed, 1 symbol modified
test_no_author_line_when_empty method method test_no_author_line_when_empty L66–71
+ test_author_from_identity_when_not_explicit method method test_author_from_identity_when_not_explicit L66–71
~ tests/test_cmd_gc_hardening.py .py 2 symbols added, 5 symbols modified
~ tests/test_cmd_init.py .py 3 symbols added, 3 symbols removed, 1 symbol modified
test_code_domain_ignores_tls_certs method method test_code_domain_ignores_tls_certs L87–93
test_code_domain_ignores_tls_keys method method test_code_domain_ignores_tls_keys L80–85
test_tls_patterns_are_valid_toml method method test_tls_patterns_are_valid_toml L95–103
+ test_force_track_section_documented_in_template method method test_force_track_section_documented_in_template L95–100
+ test_template_is_valid_toml method method test_template_is_valid_toml L102–108
+ test_tls_secrets_not_in_template_patterns method method test_tls_secrets_not_in_template_patterns L80–93
~ tests/test_cmd_revert_hardening.py .py 1 symbol added, 1 symbol removed, 1 symbol modified
test_pathlib_not_imported method method test_pathlib_not_imported L183–186
+ test_pathlib_used_for_path_annotations method method test_pathlib_used_for_path_annotations L183–186
~ tests/test_gc_full.py .py 1 symbol added, 4 symbols modified
~ tests/test_gc_path_helpers_and_remote_refs.py .py 2 symbols added, 2 symbols removed, 3 symbols modified
test_shelf_json_path_is_canonical method method test_shelf_json_path_is_canonical L119–135
_shelf_json_path import import _shelf_json_path L40–40
+ test_shelf_dir_path_is_canonical method method test_shelf_dir_path_is_canonical L119–136
+ _shelf_dir import import _shelf_dir L40–40
~ tests/test_object_store_write_taxonomy.py .py 3 symbols added, 3 symbols modified
+ _write_shelf_entry function function _write_shelf_entry L86–92
+ hashlib import import hashlib L41–41
+ msgpack import import msgpack L46–46
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:eabba9eb248635d7f28f7d99b0464c202422576c6657d25f347582a3f84d7c48 --body "your comment"