gabriel / muse public
refactor tests dev
AI Agent gabriel · 135 days ago · May 5, 2026 · Diff

refactor(tests): route .muse/ path construction through paths.py helpers (batch 1)

Replace inline path construction (X / '.muse' / 'commits', etc.) with canonical helpers from muse.core.paths across 52 test files. Covers muse_dir, commits_dir, snapshots_dir, heads_dir, objects_dir, coordination_dir, harmony_dir, ref_path, config_toml_path, repo_json_path, stability_toml_path and related helpers.

sha256:48d96b838a640c22676d541b784fda3e580f9c78e0d62c473c1f60a6d0cccb9a sha
+86 ~263 symbols
sha256:b2c59cac5bb3a3cf0abe65eb72b1f97d1c0ecaa6d979aef32400f2adcd218537 snapshot
+86
symbols added
~263
symbols modified
0
dead code introduced
Semantic Changes 349 symbols
~ tests/test_app.py .py 3 symbols added, 5 symbols modified
+ head_path import import head_path L38–38
+ muse_dir import import muse_dir L38–38
+ repo_json_path import import repo_json_path L38–38
~ tests/test_apply_pack_oserror_integrity.py .py 3 symbols added, 1 symbol modified
+ commits_dir import import commits_dir L49–49
+ muse_dir import import muse_dir L49–49
+ snapshots_dir import import snapshots_dir L49–49
~ tests/test_bisect.py .py 2 symbols added, 3 symbols modified
+ ref_path import import ref_path L14–14
+ repo_json_path import import repo_json_path L14–14
~ tests/test_branch_delete_config_cleanup.py .py 1 symbol added, 3 symbols modified
~ tests/test_cli_show.py .py 1 symbol added, 2 symbols modified
+ config_toml_path import import config_toml_path L8–8
~ tests/test_cli_workflow.py .py 3 symbols added, 5 symbols modified
+ head_path import import head_path L7–7
+ muse_dir import import muse_dir L7–7
+ repo_json_path import import repo_json_path L7–7
~ tests/test_cmd_checkout.py .py 1 symbol added, 3 symbols modified
~ tests/test_cmd_cherry_pick_hardening.py .py 3 symbols added, 2 symbols modified
+ commits_dir import import commits_dir L1145–1145
+ heads_dir import import heads_dir L1145–1145
+ repo_json_path import import repo_json_path L1145–1145
~ tests/test_cmd_clones.py .py 1 symbol added, 2 symbols modified
+ indices_dir import import indices_dir L65–65
~ tests/test_cmd_code_query.py .py 4 symbols added, 3 symbols modified
+ commits_dir import import commits_dir L62–62
+ head_path import import head_path L62–62
+ heads_dir import import heads_dir L62–62
+ muse_dir import import muse_dir L62–62
~ tests/test_cmd_coord_list.py .py 1 symbol added, 2 symbols modified
+ coordination_dir import import coordination_dir L70–70
~ tests/test_cmd_dag.py .py 1 symbol added, 1 symbol modified
+ muse_dir import import muse_dir L57–57
~ tests/test_cmd_find_symbol.py .py 2 symbols added, 6 symbols modified
+ heads_dir import import heads_dir L51–51
+ indices_dir import import indices_dir L51–51
~ tests/test_cmd_index.py .py 1 symbol added, 3 symbols modified
+ indices_dir import import indices_dir L67–67
~ tests/test_cmd_log.py .py 1 symbol added, 2 symbols modified
+ repo_json_path import import repo_json_path L25–25
~ tests/test_cmd_merge_hardening.py .py 1 symbol added, 4 symbols modified
~ tests/test_cmd_revert_hardening.py .py 1 symbol added, 1 symbol modified
+ heads_dir import import heads_dir L68–68
~ tests/test_code_harmony_plugin.py .py 2 symbols added, 3 symbols modified
+ config_toml_path import import config_toml_path L39–39
+ muse_dir import import muse_dir L39–39
~ repo
~ tests/test_commit_from_dict_timestamp_loss.py .py 1 symbol added, 1 symbol modified
+ muse_dir import import muse_dir L60–60
~ tests/test_coord_pull_null_records.py .py 2 symbols added, 4 symbols modified
~ tests/test_coord_push_null_counts.py .py 1 symbol added, 1 symbol modified
+ muse_dir import import muse_dir L44–44
~ tests/test_core_ignore.py .py 2 symbols added, 3 symbols modified
+ muse_dir import import muse_dir L15–15
+ repo_json_path import import repo_json_path L15–15
~ tests/test_core_reflog.py .py 1 symbol added, 1 symbol modified
+ logs_dir import import logs_dir L17–17
~ tests/test_core_snapshot.py .py 2 symbols added, 3 symbols modified
+ muse_dir import import muse_dir L30–30
+ repo_json_path import import repo_json_path L30–30
~ tests/test_core_test_history.py .py 1 symbol added, 6 symbols modified
~ tests/test_core_type_analysis.py .py 1 symbol added, 2 symbols modified
+ objects_dir import import objects_dir L46–46
~ tests/test_force_track.py .py 2 symbols added, 1 symbol modified
+ muse_dir import import muse_dir L27–27
+ repo_json_path import import repo_json_path L27–27
~ tests/test_gc_corrupt_commit_object_retention.py .py 4 symbols added, 5 symbols modified
+ commits_dir import import commits_dir L55–55
+ heads_dir import import heads_dir L55–55
+ muse_dir import import muse_dir L55–55
+ snapshots_dir import import snapshots_dir L55–55
~ tests/test_harmony_comprehensive.py .py 1 symbol added, 1 symbol modified
+ muse_dir import import muse_dir L70–70
~ repo
~ tests/test_harmony_engine.py .py 1 symbol added, 1 symbol modified
+ muse_dir import import muse_dir L62–62
~ repo
~ tests/test_harmony_phase1.py .py 1 symbol added, 1 symbol modified
+ muse_dir import import muse_dir L18–18
~ repo
~ tests/test_harmony_phase4.py .py 2 symbols added, 3 symbols modified
+ harmony_dir import import harmony_dir L38–38
+ muse_dir import import muse_dir L38–38
~ repo
~ tests/test_integrity_I1_read_verify.py .py 1 symbol added, 2 symbols modified
+ muse_dir import import muse_dir L40–40
~ _repo
~ tests/test_security_env_injection.py .py 1 symbol added, 3 symbols modified
~ tests/test_stress_object_store.py .py 1 symbol added, 1 symbol modified
+ muse_dir import import muse_dir L30–30
~ repo
~ tests/test_transport_snapshot_directories_dropped.py .py 2 symbols added, 1 symbol modified
+ muse_dir import import muse_dir L56–56
+ snapshots_dir import import snapshots_dir L56–56
← 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:48d96b838a640c22676d541b784fda3e580f9c78e0d62c473c1f60a6d0cccb9a --body "your comment"