test_agent_map_envelope.py
python
sha256:81ae324db5ad375fbfe4834c6fcb378312cafad3cc92dec5d3e5c427306621a2
fix: remove commit_exists filter from have anchors — server…
Sonnet 4.6
patch
21 days ago
| 1 | """Envelope tests for ``muse agent-map --json``.""" |
| 2 | from __future__ import annotations |
| 3 | import json |
| 4 | import pytest |
| 5 | from tests.cli_test_helper import CliRunner |
| 6 | |
| 7 | runner = CliRunner() |
| 8 | |
| 9 | class TestAgentMapEnvelope: |
| 10 | def test_has_muse_version(self) -> None: |
| 11 | r = runner.invoke(None, ["agent-map", "tracks/fake.mid", "-j"]) |
| 12 | # May succeed with empty attributions or fail with repo/track error; |
| 13 | # either way, JSON mode must emit valid JSON with envelope fields. |
| 14 | if r.exit_code == 0: |
| 15 | d = json.loads(r.output) |
| 16 | assert "muse_version" in d |
| 17 | assert "schema" in d |
| 18 | assert "timestamp" in d |
| 19 | assert "warnings" in d |
| 20 | assert "schema_version" not in d |
File History
4 commits
sha256:81ae324db5ad375fbfe4834c6fcb378312cafad3cc92dec5d3e5c427306621a2
fix: remove commit_exists filter from have anchors — server…
Sonnet 4.6
patch
21 days ago
sha256:36c3cb3e76619d4c30a6d9bf81b5ec4ff148e30dcfed913e3114ca7b43b81c7e
fix: rename objects→blobs in push client and all stale test…
Sonnet 4.6
patch
22 days ago
sha256:c06a9b9b9fee26c68ea725b44d54b2c0a171301ce9de746d5b656617b4463a9a
fix: repair four test failures from post-migration audit
Sonnet 4.6
patch
28 days ago
sha256:1900655993c83c4107067375548a7be823e471d2515830842f1a12cba4bd3cdf
fix: unified object store migration — idempotent writes, JS…
Sonnet 4.6
minor
⚠
29 days ago