gabriel / musehub public
test task/bench-cli-only #2 / 3
AI Agent gabriel · 121 days ago · May 15, 2026 · Diff

test: add clone XS unit tests C1–C5 (issue #65)

5 tests against real localhost infrastructure — no mocks, no ASGI. C1 exits 0, C2 file content integrity, C3 clean output, C4 commit graph, C5 deterministic.

sha256:7334e91500899bbc156d75217694010e280818d53ad34ef6f18f827538b5ec53 sha
+25 symbols
sha256:634d530a6c89f9df1605e58771cc36032835f313ad6932576ff3fea0ee6eee5c snapshot
+25
symbols added
0
dead code introduced
Semantic Changes 25 symbols
~ tests/test_clone_xs_unit.py .py 25 symbols added
+ FILE_CONTENT variable variable FILE_CONTENT L32–32
+ FILE_OID variable variable FILE_OID L33–33
+ LOCALHOST variable variable LOCALHOST L29–29
+ REPO_ROOT variable variable REPO_ROOT L30–30
+ _muse function function _muse L36–40
+ _muse_check function function _muse_check L43–47
+ _push_xs_repo function function _push_xs_repo L50–76
+ _wait_indexed function async_function _wait_indexed L79–92
+ Path import import Path L24–24
+ _time import import _time L23–23
+ annotations import import annotations L14–14
+ asyncio import import asyncio L16–16
+ asyncpg import import asyncpg L26–26
+ hashlib import import hashlib L17–17
+ json import import json L18–18
+ os import import os L19–19
+ pytest import import pytest L27–27
+ shutil import import shutil L20–20
+ subprocess import import subprocess L21–21
+ tempfile import import tempfile L22–22
+ test_c1_muse_clone_xs_exits_zero function function test_c1_muse_clone_xs_exits_zero L99–116
+ test_c2_cloned_file_content_matches_push function function test_c2_cloned_file_content_matches_push L123–159
+ test_c3_clone_output_has_no_integrity_errors function function test_c3_clone_output_has_no_integrity_errors L166–188
+ test_c4_cloned_repo_commit_graph_is_correct function function test_c4_cloned_repo_commit_graph_is_correct L195–224
+ test_c5_two_clones_are_identical function function test_c5_two_clones_are_identical L231–279

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:7334e91500899bbc156d75217694010e280818d53ad34ef6f18f827538b5ec53 --body "your comment"