gabriel / musehub public
test minor task/pack-origin-wire-tests #1 / 1
gabriel · 70 days ago · Apr 12, 2026 · Diff

test: add pack_origin advertisement tests for GET /refs

4 new tests in test_wire_protocol.py: - test_refs_advertises_pack_origin_when_both_settings_set: verifies pack_origin is populated when both PACK_WORKER_URL + WORKER_INTERNAL_KEY are configured in Settings - test_refs_no_pack_origin_when_key_missing: key absent → null - test_refs_no_pack_origin_when_url_missing: URL absent → null - test_refs_no_pack_origin_when_neither_set: both absent → null

All four cases use monkeypatch to isolate settings state between tests.

sha256:eb628853433d63b62570262f77a95d3de1b6d2da9b9a9f17ca8ed112f77a73dc sha
sha256:ee0c5d637160a99b00f75f724ee36b9a0a2b1bb99d3e0d467567037a3ea00a55 snapshot
← Older Oldest on task/pack-origin-wire-tests
All commits
Newer → Latest on task/pack-origin-wire-tests

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