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

fix(tests): isolate config-envelope test + add muse_repo/bare_muse_repo fixtures

test_config_set_has_envelope was writing 'https://test.example.com' directly into .muse/config.toml on every test run, breaking muse auth --sign on all subsequent commits (identity lookup fails for test.example.com).

Root cause: runner.invoke had no cwd isolation — the config set command resolved the repo root to the real working tree and clobbered it.

Fix: - Add muse_repo fixture to conftest.py: full muse init in tmp_path via CLI - Add bare_muse_repo fixture to conftest.py: init_repo_dirs only, no HEAD/repo.json - Rewrite test_config_cmd_envelope.py to pass cwd=muse_repo to every invoke call - Change the set value from test.example.com to https://localhost:1337

muse_repo and bare_muse_repo are now available to every test file automatically. Replaces all scattered _init_repo helpers over time.

sha256:32a092c26a0efe679aafb1ccdb6076baf9e9d4ca2183dd75544bdb7783c4f4d6 sha
sha256:4732ecf277b397b6521576d6423cd37633520b7681851cfad4a75c020a602f1b snapshot
← 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:32a092c26a0efe679aafb1ccdb6076baf9e9d4ca2183dd75544bdb7783c4f4d6 --body "your comment"