File size: 647 Bytes
3f9c655
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Sanity check on the preload list app.py advertises to HF Spaces.

If this drifts the README's ``preload_from_hub`` frontmatter and the
symlink loop in ``_symlink_snapshots_into_models()`` will fall out of
sync — first-user latency on Spaces regresses without anyone noticing
until prod. Cheap to assert here.
"""

from __future__ import annotations


def test_preload_repos_shape():
    from app import _PRELOAD_REPOS

    assert isinstance(_PRELOAD_REPOS, tuple)
    assert len(_PRELOAD_REPOS) == 5
    for repo_id in _PRELOAD_REPOS:
        assert isinstance(repo_id, str)
        assert repo_id.startswith(("ACE-Step/", "Qwen/")), repo_id