fix(tests): autouse fixture isolates ~/.muse/ from every test
All five module-level constants that cache the real ~/.muse/ path at import time are now redirected to a per-test tmp_path via an autouse fixture in conftest.py:
muse.core.keypair._KEYS_DIR muse.core.identity._IDENTITY_DIR + _IDENTITY_FILE muse.core.hub_trust._HUB_TRUST_FILE muse.cli.config._GLOBAL_CONFIG_FILE
pathlib.Path.home() is also patched so dynamic calls to user_muse_dir() stay isolated. Without this, any test touching auth, identity, keychain, hub-trust, or global config would silently clobber the developer's Ed25519 identity and break push authentication against the local hub.
sha256:7800c4a611040daa4c28baa91f5f586c750eb49a0f4a43435054126ca99d1b78
sha
sha256:9dac75d0efa19b53264f60d0d3cc0e529a851d55f033b205557f64d26cede1a3
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:7800c4a611040daa4c28baa91f5f586c750eb49a0f4a43435054126ca99d1b78 --body "your comment"
No comments yet. Be the first to start the discussion.