mirror of
https://github.com/KohakuBlueleaf/KohakuHub.git
synced 2026-11-14 21:11:32 -06:00
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>