gabriel / musehub public
test patch task/ssr-visibility-tests #1 / 1
AI Agent gabriel · 18 hours ago · Jun 12, 2026 · Diff

test: add AV_19-AV_26 SSR visibility gate tests; fix settings test auth

- New tests/test_ssr_visibility.py covers AV_19-AV_26 from issue #90: anonymous private repo pages return 404, public repo returns 200, authed owner private repo returns 200, settings returns 401/403/200 depending on auth state and ownership. - Fix tests/test_musehub_ui_settings.py and test_musehub_ui_settings_ssr.py: both were broken by the Phase 3 require_valid_token gate added in task/ssr-visibility-gate. All content tests now use auth_headers with owner=testuser; test_settings_page_no_auth_required updated to assert 401.

sha256:f0ce2f5b7a3316126a89512a9f2ab9e4ac3cf2dbd7dae9155812a102138d15b4 sha
+26 ~23 −1 symbols
3 changed · 970 in snapshot files
sha256:2c2281551ce5d8260744ebcb4d644822b5d79edeecb237cf913af894db679ca3 snapshot
+26
symbols added
~23
symbols modified
−1
symbol removed
3
files changed
970
files in snapshot
0
dead code introduced
Semantic Changes 50 symbols
+ docs/
+ src/
+ tests/
+ tools/
~ tests/test_ssr_visibility.py .py 21 symbols added
+ _OWNER variable variable _OWNER L31–31
+ _make_repo function async_function _make_repo L34–55
+ AsyncClient import import AsyncClient L23–23
+ AsyncSession import import AsyncSession L24–24
+ Generator import import Generator L20–20
+ MusehubIdentity import import MusehubIdentity L27–27
+ MusehubRepo import import MusehubRepo L28–28
+ annotations import import annotations L17–17
+ compute_identity_id import import compute_identity_id L26–26
+ compute_repo_id import import compute_repo_id L26–26
+ datetime import import datetime L19–19
+ pytest import import pytest L22–22
+ timezone import import timezone L19–19
+ test_av_19_anon_private_repo_home_returns_404 function async_function test_av_19_anon_private_repo_home_returns_404 L62–69
+ test_av_20_anon_private_repo_commits_returns_404 function async_function test_av_20_anon_private_repo_commits_returns_404 L76–83
+ test_av_21_anon_private_repo_issues_returns_404 function async_function test_av_21_anon_private_repo_issues_returns_404 L90–97
+ test_av_22_anon_public_repo_home_returns_200 function async_function test_av_22_anon_public_repo_home_returns_200 L104–113
+ test_av_23_authed_owner_private_repo_returns_200 function async_function test_av_23_authed_owner_private_repo_returns_200 L120–134
+ test_av_24_anon_settings_returns_401 function async_function test_av_24_anon_settings_returns_401 L141–154
+ test_av_25_authed_nonowner_settings_returns_403 function async_function test_av_25_authed_nonowner_settings_returns_403 L161–176
+ test_av_26_authed_owner_settings_returns_200 function async_function test_av_26_authed_owner_settings_returns_200 L183–194
Files Changed
+1 ~2
970 in snapshot
← Older Oldest on task/ssr-visibility-tests
All commits
Newer → Latest on task/ssr-visibility-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:f0ce2f5b7a3316126a89512a9f2ab9e4ac3cf2dbd7dae9155812a102138d15b4 --body "your comment"