Files
narugo1992andClaude Opus 4.7 6a4511f836 test(hf-e2e): move visibility coverage tests under huggingface_hub flow
The previous coverage commit added raw-HTTP tests in test_crud.py for
the visibility="public" + 400 unknown-visibility branches. Per the HF
compatibility rule (AGENTS.md §5.1: prefer verification through the
real huggingface_hub Python client), reshape so the public branch is
exercised by HfApi.create_repo(repo_id, private=False) — v0 cells
take the explicit-private path, v1 cells take the
visibility="public" path, both observably collapse to a public repo.
The 400 branch keeps using raw HTTP because huggingface_hub validates
visibility client-side (RepoVisibility_T Literal) and refuses to
send unknown values; that branch is documented in the test docstring.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 21:12:15 +08:00
..